1 | <?php |
||
11 | final class HooksReader { |
||
12 | |||
13 | /** |
||
14 | * Reader instance. |
||
15 | * |
||
16 | * @var AnnotationReader |
||
17 | */ |
||
18 | private $reader; |
||
19 | |||
20 | /** |
||
21 | * Construct a new HooksReader instance. |
||
22 | */ |
||
23 | 3 | private function __construct() { |
|
29 | |||
30 | /** |
||
31 | * Get the Annotation reader. |
||
32 | * |
||
33 | * @return AnnotationReader |
||
34 | */ |
||
35 | 30 | private function reader() { |
|
38 | |||
39 | /** |
||
40 | * Get the shared reader instance. |
||
41 | * |
||
42 | * @return HooksReader |
||
43 | */ |
||
44 | 30 | static private function instance() { |
|
53 | |||
54 | /** |
||
55 | * Shared implementation of hook reading logic. |
||
56 | * |
||
57 | * @param object $target Object to read annotations from. |
||
58 | * @param \Closure $condition Whether the annotation should be registered. |
||
59 | * @return array |
||
60 | */ |
||
61 | 30 | static public function read( $target, $condition ) { |
|
82 | } |
||
83 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.