@@ -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 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | protected $secondLevelCacheDriverImpl = null; |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @param array $paths |
|
| 55 | + * @param string[] $paths |
|
| 56 | 56 | * @param mixed $alias |
| 57 | 57 | * |
| 58 | 58 | * @return \Doctrine\ORM\Mapping\Driver\AnnotationDriver |
@@ -83,6 +83,7 @@ |
||
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * {@inheritDoc} |
| 86 | + * @param string $value |
|
| 86 | 87 | */ |
| 87 | 88 | public function setValue($object, $value = null) |
| 88 | 89 | { |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | 184 | * |
| 185 | - * @param kateglo\application\models\Type $type |
|
| 185 | + * @param Type $type |
|
| 186 | 186 | * @return void |
| 187 | 187 | */ |
| 188 | 188 | public function addType(Type $type){ |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * |
| 197 | - * @param kateglo\application\models\Type $type |
|
| 197 | + * @param Type $type |
|
| 198 | 198 | * @return void |
| 199 | 199 | */ |
| 200 | 200 | public function removeType(Type $type) |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | |
| 305 | 305 | /** |
| 306 | 306 | * |
| 307 | - * @param kateglo\application\models\Lemma $lemma |
|
| 307 | + * @param Lemma $lemma |
|
| 308 | 308 | * @return void |
| 309 | 309 | */ |
| 310 | 310 | public function addLemma(Lemma $lemma) |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | |
| 318 | 318 | /** |
| 319 | 319 | * |
| 320 | - * @param kateglo\application\models\Lemma $lemma |
|
| 320 | + * @param Lemma $lemma |
|
| 321 | 321 | * @return void |
| 322 | 322 | */ |
| 323 | 323 | public function removeLEmma(Lemma $lemma) |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | class ConvertDoctrine1SchemaTest extends OrmTestCase |
| 47 | 47 | { |
| 48 | + /** |
|
| 49 | + * @param YamlDriver $metadataDriver |
|
| 50 | + */ |
|
| 48 | 51 | protected function _createEntityManager($metadataDriver) |
| 49 | 52 | { |
| 50 | 53 | $driverMock = new DriverMock(); |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | use Doctrine\ORM\Mapping\Driver\YamlDriver; |
| 26 | 26 | use Doctrine\ORM\Tools\Export\ClassMetadataExporter; |
| 27 | 27 | use Doctrine\ORM\Tools\ConvertDoctrine1Schema; |
| 28 | -use Doctrine\Tests\Mocks\MetadataDriverMock; |
|
| 29 | 28 | use Doctrine\Tests\Mocks\EntityManagerMock; |
| 30 | 29 | use Doctrine\Tests\Mocks\ConnectionMock; |
| 31 | 30 | use Doctrine\Tests\Mocks\DriverMock; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | - * @param field_type $fooTitle |
|
| 130 | + * @param string $fooTitle |
|
| 131 | 131 | */ |
| 132 | 132 | public function setFooTitle($fooTitle) |
| 133 | 133 | { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /** |
| 208 | - * @param field_type $barTitle |
|
| 208 | + * @param string $barTitle |
|
| 209 | 209 | */ |
| 210 | 210 | public function setBarTitle($barTitle) |
| 211 | 211 | { |