@@ -37,7 +37,6 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * @param Organization $currentOrganization |
|
41 | 40 | * |
42 | 41 | * @return array |
43 | 42 | */ |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -302,8 +302,8 @@ |
||
302 | 302 | |
303 | 303 | /** |
304 | 304 | * @param int $id |
305 | - * @param array $organizations |
|
306 | - * @param array $bUnits |
|
305 | + * @param Organization[] $organizations |
|
306 | + * @param BusinessUnit[] $bUnits |
|
307 | 307 | * @return User |
308 | 308 | */ |
309 | 309 | protected function getCurrentUser($id, array $organizations, array $bUnits) |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\EventManager; |
6 | 6 | use Doctrine\DBAL\Driver\Connection; |
7 | - |
|
8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
9 | - |
|
10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
12 | 10 |
@@ -172,6 +172,9 @@ |
||
172 | 172 | $this->subscriber->postSetData($event); |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @param Tag $entity |
|
177 | + */ |
|
175 | 178 | protected function prepareEntityManager($entity) |
176 | 179 | { |
177 | 180 | $entityClass = ClassUtils::getClass($entity); |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\EventManager; |
6 | 6 | use Doctrine\DBAL\Driver\Connection; |
7 | - |
|
8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
9 | - |
|
10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
12 | 10 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @param object $entity |
|
43 | + * @param \Oro\Bundle\OrganizationBundle\Entity\BusinessUnit $entity |
|
44 | 44 | * @return string |
45 | 45 | */ |
46 | 46 | public function getOwnerType($entity) |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @param object $entity |
|
58 | + * @param \Oro\Bundle\OrganizationBundle\Tests\Unit\Fixture\Entity\Entity $entity |
|
59 | 59 | * |
60 | 60 | * @return null|object |
61 | 61 | */ |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Get sorting mode. |
69 | 69 | * Can be ASC, DESC or null. |
70 | 70 | * |
71 | - * @return string|null |
|
71 | + * @return string |
|
72 | 72 | */ |
73 | 73 | public function getSorting() |
74 | 74 | { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * |
95 | 95 | * Note: getFunc name is used instead of getFunction due a problem with JS |
96 | 96 | * |
97 | - * @return array|null |
|
97 | + * @return string |
|
98 | 98 | */ |
99 | 99 | public function getFunc() |
100 | 100 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * Get column names |
24 | 24 | * |
25 | - * @return string |
|
25 | + * @return string[] |
|
26 | 26 | */ |
27 | 27 | public function getColumnNames() |
28 | 28 | { |
@@ -1021,7 +1021,7 @@ |
||
1021 | 1021 | |
1022 | 1022 | /** |
1023 | 1023 | * @param string $columnName |
1024 | - * @param array $joinIds |
|
1024 | + * @param string[] $joinIds |
|
1025 | 1025 | */ |
1026 | 1026 | protected function addColumnAliasesForVirtualRelation($columnName, array $joinIds) |
1027 | 1027 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -185,7 +185,7 @@ |
||
185 | 185 | /** |
186 | 186 | * Get elements to delete |
187 | 187 | * |
188 | - * @return array |
|
188 | + * @return ReminderDataInterface[] |
|
189 | 189 | */ |
190 | 190 | public function getDeleteDiff() |
191 | 191 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -388,7 +388,7 @@ |
||
388 | 388 | /** |
389 | 389 | * Get related entity class name |
390 | 390 | * |
391 | - * @return string |
|
391 | + * @return integer |
|
392 | 392 | */ |
393 | 393 | public function getRelatedEntityClassName() |
394 | 394 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |