1 | <?php |
||
20 | final class Unit extends AbstractUnit |
||
21 | { |
||
22 | private static $defaultConverter; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | * Name is not used. Returns same converter for all units. |
||
27 | */ |
||
28 | 5 | protected static function findConverter($name) |
|
36 | |||
37 | protected static function findDefaultConverter() |
||
41 | } |
||
42 |
Late static binding only has effect in subclasses. A
final
class 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.