1 | <?php |
||
11 | final class Compiler implements CompilerInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | public $classDir; |
||
17 | |||
18 | /** |
||
19 | * @var CodeGenInterface |
||
20 | */ |
||
21 | private $codeGen; |
||
22 | |||
23 | /** |
||
24 | * @throws \Doctrine\Common\Annotations\AnnotationException |
||
25 | */ |
||
26 | public function __construct(string $classDir) |
||
38 | |||
39 | public function __sleep() |
||
43 | |||
44 | /** |
||
45 | * @throws \Doctrine\Common\Annotations\AnnotationException |
||
46 | */ |
||
47 | public function __wakeup() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | * |
||
55 | * @throws \ReflectionException |
||
56 | */ |
||
57 | public function newInstance(string $class, array $args, BindInterface $bind) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | * |
||
69 | * @throws \ReflectionException |
||
70 | */ |
||
71 | public function compile(string $class, BindInterface $bind) : string |
||
93 | |||
94 | private function hasNoBinding($class, BindInterface $bind) : bool |
||
100 | |||
101 | private function getBaseName($class, BindInterface $bind) : string |
||
105 | |||
106 | private function hasBoundMethod(string $class, BindInterface $bind) : bool |
||
118 | |||
119 | private function includeGeneratedCode($newClass, \ReflectionClass $sourceClass, string $file, BindInterface $bind) |
||
126 | } |
||
127 |