1 | <?php |
||
47 | class Account |
||
48 | { |
||
49 | /** |
||
50 | * Account ID |
||
51 | * |
||
52 | * @var integer |
||
53 | * @Id @Column(type="integer") |
||
54 | * @GeneratedValue |
||
55 | */ |
||
56 | protected $id; |
||
57 | /** |
||
58 | * Active |
||
59 | * |
||
60 | * @var boolean |
||
61 | * @Column(type="boolean") |
||
62 | */ |
||
63 | protected $active; |
||
64 | /** |
||
65 | * Account name |
||
66 | * |
||
67 | * @var string |
||
68 | * @Column(length=64,unique=true) |
||
69 | */ |
||
70 | protected $name; |
||
71 | /** |
||
72 | * List of all associated domains |
||
73 | * |
||
74 | * @var Domain[] |
||
75 | * @OneToMany(targetEntity="Tollwerk\Admin\Infrastructure\Model\Domain", mappedBy="account") |
||
76 | */ |
||
77 | protected $domains; |
||
78 | /** |
||
79 | * List of all associated virtual hosts |
||
80 | * |
||
81 | * @var Vhost[] |
||
82 | * @OneToMany(targetEntity="Tollwerk\Admin\Infrastructure\Model\Vhost", mappedBy="account") |
||
83 | */ |
||
84 | protected $vhosts; |
||
85 | |||
86 | /** |
||
87 | * Return the account ID |
||
88 | * |
||
89 | * @return int Account ID |
||
90 | */ |
||
91 | public function getId() |
||
95 | |||
96 | /** |
||
97 | * Set the account ID |
||
98 | * |
||
99 | * @param int $id Account ID |
||
100 | * @return Account |
||
101 | */ |
||
102 | public function setId($id) |
||
107 | |||
108 | /** |
||
109 | * Return the account name |
||
110 | * |
||
111 | * @return string Account name |
||
112 | */ |
||
113 | public function getName() |
||
117 | |||
118 | /** |
||
119 | * Set the account name |
||
120 | * |
||
121 | * @param string $name Account name |
||
122 | * @return Account |
||
123 | */ |
||
124 | public function setName($name) |
||
129 | |||
130 | /** |
||
131 | * Return whether this account is active |
||
132 | * |
||
133 | * @return bool Active account |
||
134 | */ |
||
135 | public function getActive() { |
||
138 | |||
139 | /** |
||
140 | * Set whether this is an active account |
||
141 | * |
||
142 | * @param boolean $active Active account |
||
143 | * @return Account |
||
144 | */ |
||
145 | public function setActive($active) |
||
150 | |||
151 | /** |
||
152 | * Return whether the account is ative |
||
153 | * |
||
154 | * @return boolean Active account |
||
155 | */ |
||
156 | public function isActive() |
||
160 | |||
161 | /** |
||
162 | * Return the associated domains |
||
163 | * |
||
164 | * @return Domain[] Associated domains |
||
165 | */ |
||
166 | public function getDomains() |
||
170 | |||
171 | /** |
||
172 | * Set the associated domains |
||
173 | * |
||
174 | * @param Domain[] $domains Associated domains |
||
175 | * @return Account Self reference |
||
176 | */ |
||
177 | public function setDomains($domains) |
||
182 | |||
183 | /** |
||
184 | * Return the associated virtual hosts |
||
185 | * |
||
186 | * @return Vhost[] Associated virtual hosts |
||
187 | */ |
||
188 | public function getVhosts() |
||
192 | |||
193 | /** |
||
194 | * Set the associated virtual hosts |
||
195 | * |
||
196 | * @param Vhost[] $vhosts Associated virtual hosts |
||
197 | * @return Account Self reference |
||
198 | */ |
||
199 | public function setVhosts($vhosts) |
||
204 | } |
||
205 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..