| 1 | <?php |
||
| 7 | final class Weaver |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var BindInterface |
||
| 11 | */ |
||
| 12 | private $bind; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $bindName; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $classDir; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var AopClassName |
||
| 26 | */ |
||
| 27 | private $aopClassName; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string[] |
||
| 31 | */ |
||
| 32 | private static $classDirs = []; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var Compiler |
||
| 36 | */ |
||
| 37 | private $compiler; |
||
| 38 | |||
| 39 | public function __construct(BindInterface $bind, string $classDir) |
||
| 48 | |||
| 49 | public function __wakeup() |
||
| 53 | |||
| 54 | public function newInstance(string $class, array $args) |
||
| 66 | |||
| 67 | private function regsterLoader() |
||
| 82 | } |
||
| 83 |
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.