| 1 | <?php |
||
| 18 | final class Reflection implements ReflectionInterface |
||
| 19 | { |
||
| 20 | const ACCESSOR_PREFIXES = ['get', 'is', 'has', 'can']; |
||
| 21 | const MUTATOR_PREFIXES = ['set', 'add', 'remove']; |
||
| 22 | |||
| 23 | private static $prefixes; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function getAccessorPrefixes() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function getMutatorPrefixes() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getPrefixes() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | public function getProperty($methodName) |
||
| 64 | } |
||
| 65 |
Late static binding only has effect in subclasses. A
finalclass cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::withself::.To learn more about late static binding, please refer to the PHP core documentation.