Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / common / tests / Doctrine / Tests / Common / Annotations / Fixtures / AnnotationWithAttributes.php
1 <?php
2
3 namespace Doctrine\Tests\Common\Annotations\Fixtures;
4
5 /**
6  * @Annotation
7  * @Target("ALL")
8  * @Attributes({
9       @Attribute("mixed",                type = "mixed"),
10       @Attribute("boolean",              type = "boolean"),
11       @Attribute("bool",                 type = "bool"),
12       @Attribute("float",                type = "float"),
13       @Attribute("string",               type = "string"),
14       @Attribute("integer",              type = "integer"),
15       @Attribute("array",                type = "array"),
16       @Attribute("arrayOfIntegers",      type = "array<integer>"),
17       @Attribute("annotation",           type = "Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetAll"),
18       @Attribute("arrayOfAnnotations",   type = "array<Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetAll>"),
19   })
20  */
21 final class AnnotationWithAttributes
22 {
23
24     public final function __construct(array $data)
25     {
26         foreach ($data as $key => $value) {
27             $this->$key = $value;
28         }
29     }
30
31     private $mixed;
32     private $boolean;
33     private $bool;
34     private $float;
35     private $string;
36     private $integer;
37     private $array;
38     private $annotation;
39     private $arrayOfIntegers;
40     private $arrayOfAnnotations;
41
42     /**
43      * @return mixed
44      */
45     public function getMixed()
46     {
47         return $this->mixed;
48     }
49
50     /**
51      * @return boolean
52      */
53     public function getBoolean()
54     {
55         return $this->boolean;
56     }
57
58     /**
59      * @return bool
60      */
61     public function getBool()
62     {
63         return $this->bool;
64     }
65
66     /**
67      * @return float
68      */
69     public function getFloat()
70     {
71         return $this->float;
72     }
73
74     /**
75      * @return string
76      */
77     public function getString()
78     {
79         return $this->string;
80     }
81
82     public function getInteger()
83     {
84         return $this->integer;
85     }
86
87     /**
88      * @return array
89      */
90     public function getArray()
91     {
92         return $this->array;
93     }
94
95     /**
96      * @return Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetAll
97      */
98     public function getAnnotation()
99     {
100         return $this->annotation;
101     }
102
103     /**
104      * @return array<integer>
105      */
106     public function getArrayOfIntegers()
107     {
108         return $this->arrayOfIntegers;
109     }
110
111     /**
112      * @return array<Doctrine\Tests\Common\Annotations\Fixtures\AnnotationTargetAll>
113      */
114     public function getArrayOfAnnotations()
115     {
116         return $this->arrayOfAnnotations;
117     }
118
119 }