@@ -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 | } |
@@ -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; |
@@ -21,7 +21,6 @@ |
||
21 | 21 | |
22 | 22 | use Doctrine\Common\Collections\ArrayCollection; |
23 | 23 | use Doctrine\Common\Collections\Criteria; |
24 | - |
|
25 | 24 | use Doctrine\ORM\Query\Expr; |
26 | 25 | use Doctrine\ORM\Query\QueryExpressionVisitor; |
27 | 26 |
@@ -21,7 +21,6 @@ |
||
21 | 21 | |
22 | 22 | use Doctrine\Common\Collections\ArrayCollection; |
23 | 23 | use Doctrine\Common\Collections\Criteria; |
24 | - |
|
25 | 24 | use Doctrine\ORM\Query\Expr; |
26 | 25 | use Doctrine\ORM\Query\QueryExpressionVisitor; |
27 | 26 |
@@ -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) |
@@ -3,12 +3,10 @@ |
||
3 | 3 | namespace Doctrine\Tests\ORM\Cache\Persister\Entity; |
4 | 4 | |
5 | 5 | use Doctrine\Tests\OrmTestCase; |
6 | - |
|
7 | 6 | use Doctrine\ORM\Cache\Region; |
8 | 7 | use Doctrine\ORM\EntityManager; |
9 | 8 | use Doctrine\ORM\Mapping\ClassMetadata; |
10 | 9 | use Doctrine\ORM\Persisters\Entity\EntityPersister; |
11 | - |
|
12 | 10 | use Doctrine\Tests\Models\Cache\Country; |
13 | 11 | use Doctrine\Common\Collections\Criteria; |
14 | 12 | use Doctrine\Common\Collections\ArrayCollection; |
@@ -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 | { |
@@ -3,12 +3,10 @@ |
||
3 | 3 | namespace Doctrine\Tests\ORM\Cache\Persister\Entity; |
4 | 4 | |
5 | 5 | use Doctrine\Tests\OrmTestCase; |
6 | - |
|
7 | 6 | use Doctrine\ORM\Cache\Region; |
8 | 7 | use Doctrine\ORM\EntityManager; |
9 | 8 | use Doctrine\ORM\Mapping\ClassMetadata; |
10 | 9 | use Doctrine\ORM\Persisters\Entity\EntityPersister; |
11 | - |
|
12 | 10 | use Doctrine\Tests\Models\Cache\Country; |
13 | 11 | use Doctrine\Common\Collections\Criteria; |
14 | 12 | use Doctrine\Common\Collections\ArrayCollection; |
@@ -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) |
@@ -133,6 +133,12 @@ discard block |
||
133 | 133 | return array($user1, $user2, $user3); |
134 | 134 | } |
135 | 135 | |
136 | + /** |
|
137 | + * @param string $name |
|
138 | + * @param string $username |
|
139 | + * @param string $status |
|
140 | + * @param CmsAddress $address |
|
141 | + */ |
|
136 | 142 | public function buildUser($name, $username, $status, $address) |
137 | 143 | { |
138 | 144 | $user = new CmsUser(); |
@@ -147,6 +153,12 @@ discard block |
||
147 | 153 | return $user; |
148 | 154 | } |
149 | 155 | |
156 | + /** |
|
157 | + * @param string $country |
|
158 | + * @param string $city |
|
159 | + * @param string $street |
|
160 | + * @param string $zip |
|
161 | + */ |
|
150 | 162 | public function buildAddress($country, $city, $street, $zip) |
151 | 163 | { |
152 | 164 | $address = new CmsAddress(); |
@@ -375,8 +375,16 @@ |
||
375 | 375 | private $name; |
376 | 376 | public function getId() {return $this->id;} |
377 | 377 | public function getValue() {return $this->value;} |
378 | + |
|
379 | + /** |
|
380 | + * @param string $value |
|
381 | + */ |
|
378 | 382 | public function setValue($value) {$this->value = $value;} |
379 | 383 | public function getName() {return $this->name;} |
384 | + |
|
385 | + /** |
|
386 | + * @param string $name |
|
387 | + */ |
|
380 | 388 | public function setName($name) {$this->name = $name;} |
381 | 389 | /** @PreUpdate */ |
382 | 390 | public function testCallback() {$this->value = 'Hello World';} |