@@ -137,6 +137,9 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public $version; |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $word |
|
| 142 | + */ |
|
| 140 | 143 | public function __construct($word) |
| 141 | 144 | { |
| 142 | 145 | $this->word = $word; |
@@ -166,6 +169,9 @@ discard block |
||
| 166 | 169 | */ |
| 167 | 170 | public $version; |
| 168 | 171 | |
| 172 | + /** |
|
| 173 | + * @param string $name |
|
| 174 | + */ |
|
| 169 | 175 | public function __construct($name) |
| 170 | 176 | { |
| 171 | 177 | $this->name = $name; |
@@ -183,6 +189,11 @@ discard block |
||
| 183 | 189 | /** @Column(type="integer") */ |
| 184 | 190 | public $rgt; |
| 185 | 191 | |
| 192 | + /** |
|
| 193 | + * @param string $name |
|
| 194 | + * @param integer $lft |
|
| 195 | + * @param integer $rgt |
|
| 196 | + */ |
|
| 186 | 197 | public function __construct($name, $lft, $rgt) |
| 187 | 198 | { |
| 188 | 199 | $this->name = $name; |
@@ -118,6 +118,9 @@ discard block |
||
| 118 | 118 | return $this->name; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | + /** |
|
| 122 | + * @param string $name |
|
| 123 | + */ |
|
| 121 | 124 | public function setName($name) |
| 122 | 125 | { |
| 123 | 126 | $this->name = $name; |
@@ -155,6 +158,9 @@ discard block |
||
| 155 | 158 | $this->calls = new \Doctrine\Common\Collections\ArrayCollection(); |
| 156 | 159 | } |
| 157 | 160 | |
| 161 | + /** |
|
| 162 | + * @param integer $id |
|
| 163 | + */ |
|
| 158 | 164 | public function setId($id) |
| 159 | 165 | { |
| 160 | 166 | $this->id = $id; |
@@ -165,6 +171,9 @@ discard block |
||
| 165 | 171 | $this->user = $user; |
| 166 | 172 | } |
| 167 | 173 | |
| 174 | + /** |
|
| 175 | + * @param string $phoneNumber |
|
| 176 | + */ |
|
| 168 | 177 | public function setPhoneNumber($phoneNumber) |
| 169 | 178 | { |
| 170 | 179 | $this->phonenumber = $phoneNumber; |
@@ -78,11 +78,17 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | private $name; |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $name |
|
| 83 | + */ |
|
| 81 | 84 | public function __construct($name) |
| 82 | 85 | { |
| 83 | 86 | $this->name = $name; |
| 84 | 87 | } |
| 85 | 88 | |
| 89 | + /** |
|
| 90 | + * @param string $name |
|
| 91 | + */ |
|
| 86 | 92 | public function setName($name) |
| 87 | 93 | { |
| 88 | 94 | $this->name = $name; |
@@ -240,7 +240,7 @@ |
||
| 240 | 240 | |
| 241 | 241 | /** |
| 242 | 242 | * |
| 243 | - * @return Phrase |
|
| 243 | + * @return Lemma |
|
| 244 | 244 | */ |
| 245 | 245 | public function getParent() { |
| 246 | 246 | return $this->parent; |
@@ -339,6 +339,9 @@ discard block |
||
| 339 | 339 | /** @Embedded(class = "DDC93Timestamps") */ |
| 340 | 340 | public $timestamps; |
| 341 | 341 | |
| 342 | + /** |
|
| 343 | + * @param string $name |
|
| 344 | + */ |
|
| 342 | 345 | public function __construct($name = null, DDC93Address $address = null) |
| 343 | 346 | { |
| 344 | 347 | $this->name = $name; |
@@ -403,6 +406,9 @@ discard block |
||
| 403 | 406 | */ |
| 404 | 407 | public $name; |
| 405 | 408 | |
| 409 | + /** |
|
| 410 | + * @param string $name |
|
| 411 | + */ |
|
| 406 | 412 | public function __construct($name = null) |
| 407 | 413 | { |
| 408 | 414 | $this->name = $name; |
@@ -431,6 +437,11 @@ discard block |
||
| 431 | 437 | /** @Embedded(class = "DDC93Country") */ |
| 432 | 438 | public $country; |
| 433 | 439 | |
| 440 | + /** |
|
| 441 | + * @param string $street |
|
| 442 | + * @param string $zip |
|
| 443 | + * @param string $city |
|
| 444 | + */ |
|
| 434 | 445 | public function __construct($street = null, $zip = null, $city = null, DDC93Country $country = null) |
| 435 | 446 | { |
| 436 | 447 | $this->street = $street; |
@@ -124,6 +124,9 @@ discard block |
||
| 124 | 124 | $this->assertEquals(503, $this->countQuery($em)); |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | + /** |
|
| 128 | + * @param string $label |
|
| 129 | + */ |
|
| 127 | 130 | private function queryEntity(EntityManagerInterface $em, $label) |
| 128 | 131 | { |
| 129 | 132 | $times = 100; |
@@ -155,6 +158,9 @@ discard block |
||
| 155 | 158 | printf("\n%s\n", str_repeat('-', 50)); |
| 156 | 159 | } |
| 157 | 160 | |
| 161 | + /** |
|
| 162 | + * @param string $label |
|
| 163 | + */ |
|
| 158 | 164 | public function findEntityOneToMany(EntityManagerInterface $em, $label) |
| 159 | 165 | { |
| 160 | 166 | $times = 50; |
@@ -214,6 +220,9 @@ discard block |
||
| 214 | 220 | printf("\n%s\n", str_repeat('-', 50)); |
| 215 | 221 | } |
| 216 | 222 | |
| 223 | + /** |
|
| 224 | + * @param string $label |
|
| 225 | + */ |
|
| 217 | 226 | private function findEntity(EntityManagerInterface $em, $label) |
| 218 | 227 | { |
| 219 | 228 | $times = 10; |
@@ -249,6 +258,9 @@ discard block |
||
| 249 | 258 | printf("\n%s\n", str_repeat('-', 50)); |
| 250 | 259 | } |
| 251 | 260 | |
| 261 | + /** |
|
| 262 | + * @param string $label |
|
| 263 | + */ |
|
| 252 | 264 | private function findAllEntity(EntityManagerInterface $em, $label) |
| 253 | 265 | { |
| 254 | 266 | $times = 100; |
@@ -43,6 +43,10 @@ |
||
| 43 | 43 | $this->_em = $this->_getTestEntityManager(); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $dqlToBeTested |
|
| 48 | + * @param string $sqlToBeConfirmed |
|
| 49 | + */ |
|
| 46 | 50 | public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed) |
| 47 | 51 | { |
| 48 | 52 | try { |
@@ -17,6 +17,9 @@ discard block |
||
| 17 | 17 | $this->_em = $this->_getTestEntityManager(); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param string $dql |
|
| 22 | + */ |
|
| 20 | 23 | public function assertValidDQL($dql, $debug = false) |
| 21 | 24 | { |
| 22 | 25 | try { |
@@ -30,6 +33,9 @@ discard block |
||
| 30 | 33 | } |
| 31 | 34 | } |
| 32 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $dql |
|
| 38 | + */ |
|
| 33 | 39 | public function assertInvalidDQL($dql, $debug = false) |
| 34 | 40 | { |
| 35 | 41 | try { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Doctrine\Tests\ORM\Query; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManagerInterface; |
| 6 | -use Doctrine\ORM\Query, |
|
| 7 | - Doctrine\ORM\Query\QueryException; |
|
| 6 | +use Doctrine\ORM\Query; |
|
| 7 | +use Doctrine\ORM\Query\QueryException; |
|
| 8 | 8 | use Doctrine\Tests\Mocks\MockTreeWalker; |
| 9 | 9 | use Doctrine\Tests\OrmTestCase; |
| 10 | 10 | |
@@ -373,6 +373,9 @@ discard block |
||
| 373 | 373 | return $this->items; |
| 374 | 374 | } |
| 375 | 375 | |
| 376 | + /** |
|
| 377 | + * @param string $value |
|
| 378 | + */ |
|
| 376 | 379 | public function setTransient($value) { |
| 377 | 380 | if ($value != $this->transient) { |
| 378 | 381 | $this->_onPropertyChanged('transient', $this->transient, $value); |
@@ -384,6 +387,9 @@ discard block |
||
| 384 | 387 | return $this->data; |
| 385 | 388 | } |
| 386 | 389 | |
| 390 | + /** |
|
| 391 | + * @param string $data |
|
| 392 | + */ |
|
| 387 | 393 | public function setData($data) { |
| 388 | 394 | if ($data != $this->data) { |
| 389 | 395 | $this->_onPropertyChanged('data', $this->data, $data); |
@@ -396,6 +402,9 @@ discard block |
||
| 396 | 402 | $this->_listeners[] = $listener; |
| 397 | 403 | } |
| 398 | 404 | |
| 405 | + /** |
|
| 406 | + * @param string $propName |
|
| 407 | + */ |
|
| 399 | 408 | protected function _onPropertyChanged($propName, $oldValue, $newValue) { |
| 400 | 409 | if ($this->_listeners) { |
| 401 | 410 | foreach ($this->_listeners as $listener) { |
@@ -426,6 +435,9 @@ discard block |
||
| 426 | 435 | return $this->owner; |
| 427 | 436 | } |
| 428 | 437 | |
| 438 | + /** |
|
| 439 | + * @param NotifyChangedEntity|null $owner |
|
| 440 | + */ |
|
| 429 | 441 | public function setOwner($owner) { |
| 430 | 442 | $this->owner = $owner; |
| 431 | 443 | } |