2022-11-11 13:26:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* https://www.d3data.de
|
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
|
|
|
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
|
|
|
*/
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace D3\TestingTools\Tests\Unit\Development\HelperClasses;
|
|
|
|
|
|
|
|
class CanAccessRestrictedClass
|
|
|
|
{
|
|
|
|
/** @var string */
|
2024-02-01 08:30:06 +01:00
|
|
|
public string $publicProperty = 'publicProperty';
|
2022-11-11 13:26:07 +01:00
|
|
|
|
|
|
|
/** @var string */
|
2024-02-01 08:30:06 +01:00
|
|
|
protected string $protectedProperty = 'protectedProperty';
|
2022-11-11 13:26:07 +01:00
|
|
|
|
|
|
|
/** @var string */
|
2024-02-01 08:30:06 +01:00
|
|
|
private string $privateProperty = 'privateProperty';
|
2022-11-11 13:26:07 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $arg
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function publicMethod(string $arg): string
|
|
|
|
{
|
|
|
|
return __METHOD__.'##'.$arg;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $arg
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
protected function protectedMethod(string $arg): string
|
|
|
|
{
|
|
|
|
return __METHOD__.'##'.$arg;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $arg
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
private function privateMethod(string $arg): string
|
|
|
|
{
|
|
|
|
return __METHOD__.'##'.$arg;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $arg
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
final public function finalPublicMethod(string $arg): string
|
|
|
|
{
|
|
|
|
return __METHOD__.'##'.$arg;
|
|
|
|
}
|
|
|
|
}
|