@@ -23,6 +23,11 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public $target; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param DDC117Article $source |
|
| 28 | + * @param DDC117Article $target |
|
| 29 | + * @param string $description |
|
| 30 | + */ |
|
| 26 | 31 | public function __construct($source, $target, $description) |
| 27 | 32 | { |
| 28 | 33 | $this->source = $source; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return ArrayCollection |
|
| 62 | + * @return DDC3579Admin[] |
|
| 63 | 63 | */ |
| 64 | 64 | public function getAdmins() |
| 65 | 65 | { |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | private $format; |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $distributionHash |
|
| 37 | + */ |
|
| 35 | 38 | function __construct($distributionHash) { |
| 36 | 39 | $this->distributionHash = $distributionHash; |
| 37 | 40 | } |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | private $pois; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $name |
|
| 30 | + */ |
|
| 28 | 31 | function __construct($name) { |
| 29 | 32 | $this->name = $name; |
| 30 | 33 | } |
@@ -29,6 +29,9 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | private $file; |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $file |
|
| 34 | + */ |
|
| 32 | 35 | function __construct($poi, $file) { |
| 33 | 36 | $this->poi = $poi; |
| 34 | 37 | $this->file = $file; |
@@ -28,6 +28,9 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public $stocks; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $name |
|
| 33 | + */ |
|
| 31 | 34 | public function __construct($name) |
| 32 | 35 | { |
| 33 | 36 | $this->name = $name; |
@@ -94,6 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | + * @param State $owner |
|
| 97 | 98 | * @return \Doctrine\ORM\PersistentCollection |
| 98 | 99 | */ |
| 99 | 100 | protected function createCollection($owner, $assoc = null, $class = null, $elements = null) |
@@ -6,11 +6,9 @@ |
||
| 6 | 6 | use Doctrine\ORM\Cache\Persister\Collection\CachedCollectionPersister; |
| 7 | 7 | use Doctrine\ORM\PersistentCollection; |
| 8 | 8 | use Doctrine\Tests\OrmTestCase; |
| 9 | - |
|
| 10 | 9 | use Doctrine\ORM\Cache\Region; |
| 11 | 10 | use Doctrine\ORM\EntityManager; |
| 12 | 11 | use Doctrine\ORM\Persisters\Collection\CollectionPersister; |
| 13 | - |
|
| 14 | 12 | use Doctrine\Tests\Models\Cache\State; |
| 15 | 13 | use Doctrine\Common\Collections\ArrayCollection; |
| 16 | 14 | |
@@ -83,8 +83,8 @@ |
||
| 83 | 83 | $this->em = $this->_getTestEntityManager(); |
| 84 | 84 | $this->region = $this->createRegion(); |
| 85 | 85 | $this->collectionPersister = $this->getMockBuilder(CollectionPersister::class) |
| 86 | - ->setMethods($this->collectionPersisterMockMethods) |
|
| 87 | - ->getMock(); |
|
| 86 | + ->setMethods($this->collectionPersisterMockMethods) |
|
| 87 | + ->getMock(); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | ->with($this->equalTo($collection), $this->equalTo(1), $this->equalTo(2)) |
| 192 | 192 | ->will($this->returnValue($slice)); |
| 193 | 193 | |
| 194 | - $this->assertEquals($slice, $persister->slice($collection, 1 , 2)); |
|
| 194 | + $this->assertEquals($slice, $persister->slice($collection, 1, 2)); |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | public function testInvokeContains() |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | ->with($this->equalTo($collection), $this->equalTo($element)) |
| 209 | 209 | ->will($this->returnValue(false)); |
| 210 | 210 | |
| 211 | - $this->assertFalse($persister->contains($collection,$element)); |
|
| 211 | + $this->assertFalse($persister->contains($collection, $element)); |
|
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | public function testInvokeContainsKey() |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | - * @return \Doctrine\ORM\Cache\Persister\AbstractEntityPersister |
|
| 117 | + * @return \Doctrine\ORM\Cache\Persister\Entity\AbstractEntityPersister |
|
| 118 | 118 | */ |
| 119 | 119 | protected function createPersisterDefault() |
| 120 | 120 | { |
@@ -100,8 +100,8 @@ |
||
| 100 | 100 | $this->em = $this->_getTestEntityManager(); |
| 101 | 101 | $this->region = $this->createRegion(); |
| 102 | 102 | $this->entityPersister = $this->getMockBuilder(EntityPersister::class) |
| 103 | - ->setMethods($this->entityPersisterMockMethods) |
|
| 104 | - ->getMock(); |
|
| 103 | + ->setMethods($this->entityPersisterMockMethods) |
|
| 104 | + ->getMock(); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | ->with($this->equalTo([]), $this->equalTo('Foo'), $this->equalTo(1), $this->equalTo(2)) |
| 381 | 381 | ->will($this->returnValue([$entity])); |
| 382 | 382 | |
| 383 | - $this->assertEquals([$entity], $persister->getManyToManyCollection([], 'Foo', 1 ,2)); |
|
| 383 | + $this->assertEquals([$entity], $persister->getManyToManyCollection([], 'Foo', 1, 2)); |
|
| 384 | 384 | } |
| 385 | 385 | |
| 386 | 386 | public function testInvokeGetOneToManyCollection() |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | ->with($this->equalTo([]), $this->equalTo('Foo'), $this->equalTo(1), $this->equalTo(2)) |
| 394 | 394 | ->will($this->returnValue([$entity])); |
| 395 | 395 | |
| 396 | - $this->assertEquals([$entity], $persister->getOneToManyCollection([], 'Foo', 1 ,2)); |
|
| 396 | + $this->assertEquals([$entity], $persister->getOneToManyCollection([], 'Foo', 1, 2)); |
|
| 397 | 397 | } |
| 398 | 398 | |
| 399 | 399 | public function testInvokeLoadManyToManyCollection() |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @param string $className |
|
| 30 | + * @param string $classNames |
|
| 31 | 31 | * @return ClassMetadata |
| 32 | 32 | */ |
| 33 | 33 | protected function extractClassMetadata(array $classNames) |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $driver = new DatabaseDriver($sm); |
| 41 | 41 | |
| 42 | 42 | foreach ($driver->getAllClassNames() as $className) { |
| 43 | - if (!in_array(strtolower($className), $classNames)) { |
|
| 43 | + if ( ! in_array(strtolower($className), $classNames)) { |
|
| 44 | 44 | continue; |
| 45 | 45 | } |
| 46 | 46 | $class = new ClassMetadataInfo($className); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | if (count($metadatas) != count($classNames)) { |
| 52 | - $this->fail("Have not found all classes matching the names '" . implode(", ", $classNames) . "' only tables " . implode(", ", array_keys($metadatas))); |
|
| 52 | + $this->fail("Have not found all classes matching the names '".implode(", ", $classNames)."' only tables ".implode(", ", array_keys($metadatas))); |
|
| 53 | 53 | } |
| 54 | 54 | return $metadatas; |
| 55 | 55 | } |