1 | <?php |
||
21 | final class Instantiator implements InstantiatorInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var ReflectionClass[] |
||
25 | */ |
||
26 | private static $reflectionsCache = array(); |
||
27 | /** |
||
28 | * @var object[] Объекты, которые могут быть клонированы |
||
29 | */ |
||
30 | private static $prototypesCache = array(); |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 14 | public function newInstance($className) |
|
53 | |||
54 | /** |
||
55 | * |
||
56 | * @param string $className |
||
57 | * @return ReflectionClass |
||
58 | * @throws InvalidArgumentException |
||
59 | */ |
||
60 | 10 | private function getReflection($className) |
|
78 | |||
79 | /** |
||
80 | * |
||
81 | * @param ReflectionClass $reflection |
||
82 | * @return boolean |
||
83 | */ |
||
84 | 7 | private function isCloneable(ReflectionClass $reflection) |
|
91 | } |
||
92 |