1 | <?php |
||
5 | class AutoConstructReader extends Reader |
||
6 | { |
||
7 | /** |
||
8 | * The name of the annotation class that define the construct arguments. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | private static $constructAnnotationClass = "Accessible\\Annotation\\Construct"; |
||
13 | |||
14 | /** |
||
15 | * The name of the annotation class that define a property's default value. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | private static $initializeAnnotationClass = "Accessible\\Annotation\\Initialize"; |
||
20 | |||
21 | /** |
||
22 | * The name of the annotation class that define the initial value of an object property. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private static $initializeObjectAnnotationClass = "Accessible\\Annotation\\InitializeObject"; |
||
27 | |||
28 | /** |
||
29 | * Get the list of needed arguments for given object's constructor. |
||
30 | * |
||
31 | * @param array $objectClasses The classes of the object to read. |
||
32 | * @param \Doctrine\Common\Annotations\Reader $annotationReader The annotation reader to use. |
||
33 | * |
||
34 | * @return array The list of arguments. |
||
35 | */ |
||
36 | 7 | public static function getConstructArguments($objectClasses, $annotationReader) |
|
51 | |||
52 | /** |
||
53 | * Get the list of properties that have to be initialized automatically |
||
54 | * during the object construction, plus their value. |
||
55 | * |
||
56 | * @param array $properties The properties of the object to read. |
||
57 | * @param \Doctrine\Common\Annotations\Reader $annotationReader The annotation reader to use. |
||
58 | * |
||
59 | * @return array The list of properties and values, |
||
60 | * in the form ["property" => "value"]. |
||
61 | */ |
||
62 | 7 | public static function getPropertiesToInitialize($properties, $annotationReader) |
|
89 | } |
||
90 |