1 | <?php |
||
12 | class BaseClass implements Base |
||
13 | { |
||
14 | /** @var string */ |
||
15 | public $publicProperty = 'publicPropertyDefault'; |
||
16 | |||
17 | /** @var string */ |
||
18 | protected $protectedProperty = 'protectedPropertyDefault'; |
||
19 | |||
20 | //phpcs:disable SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedProperty |
||
21 | /** @var string */ |
||
22 | private $privateProperty = 'privatePropertyDefault'; |
||
23 | //phpcs:enable |
||
24 | |||
25 | public function publicMethod() : string |
||
29 | |||
30 | protected function protectedMethod() : string |
||
34 | |||
35 | //phpcs:disable SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedMethod |
||
36 | private function privateMethod() : string |
||
41 | |||
42 | public function publicTypeHintedMethod(stdClass $param) : string |
||
46 | |||
47 | /** |
||
48 | * @param mixed[] $param |
||
49 | */ |
||
50 | public function publicArrayHintedMethod(array $param) : string |
||
54 | |||
55 | public function & publicByReferenceMethod() : string |
||
59 | |||
60 | /** |
||
61 | * @param mixed $param |
||
62 | * @param mixed $byRefParam |
||
63 | */ |
||
64 | public function publicByReferenceParameterMethod($param, &$byRefParam) : string |
||
68 | } |
||
69 |