1 | <?php |
||
16 | abstract class AbstractAdapter implements AdapterInterface |
||
17 | { |
||
18 | /** @var ReaderInterface */ |
||
19 | protected $reader; |
||
20 | |||
21 | /** @var Reflection[] */ |
||
22 | protected $reflections; |
||
23 | |||
24 | /** |
||
25 | * @param ReaderInterface $reader |
||
26 | */ |
||
27 | 1 | public function __construct(ReaderInterface $reader) |
|
32 | |||
33 | /** |
||
34 | * @param string $class |
||
35 | * @return Reflection |
||
36 | */ |
||
37 | 1 | protected function get(string $class) : Reflection |
|
41 | |||
42 | /** |
||
43 | * @param string $class |
||
44 | * @param Reflection $reflection |
||
45 | */ |
||
46 | 1 | protected function set(string $class, Reflection $reflection) |
|
50 | |||
51 | /** |
||
52 | * @param string $class |
||
53 | * @return bool |
||
54 | */ |
||
55 | 1 | protected function has(string $class) : bool |
|
59 | |||
60 | /** |
||
61 | * @param string $class |
||
62 | * @param Reflection $reflection |
||
63 | */ |
||
64 | abstract protected function write(string $class, Reflection $reflection); |
||
65 | } |
||
66 |