@@ -125,6 +125,9 @@ discard block |
||
| 125 | 125 | return $this->identifier; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @param string[] $identifier |
|
| 130 | + */ |
|
| 128 | 131 | public function setIdentifier($identifier) |
| 129 | 132 | { |
| 130 | 133 | $this->identifier = $identifier; |
@@ -345,6 +348,9 @@ discard block |
||
| 345 | 348 | return $this->associations[$fieldName]; |
| 346 | 349 | } |
| 347 | 350 | |
| 351 | + /** |
|
| 352 | + * @param string $customRepositoryClassName |
|
| 353 | + */ |
|
| 348 | 354 | public function setCustomRepositoryClass($customRepositoryClassName) |
| 349 | 355 | { |
| 350 | 356 | $this->repositoryClass = $customRepositoryClassName; |
@@ -188,6 +188,9 @@ discard block |
||
| 188 | 188 | return $this->snapshot; |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | + /** |
|
| 192 | + * @param boolean $state |
|
| 193 | + */ |
|
| 191 | 194 | public function setInitialized($state) |
| 192 | 195 | { |
| 193 | 196 | $this->initialized = (bool)$state; |
@@ -452,7 +455,7 @@ discard block |
||
| 452 | 455 | * Internal note: Tried to implement Serializable first but that did not work well |
| 453 | 456 | * with circular references. This solution seems simpler and works well. |
| 454 | 457 | * |
| 455 | - * @return array |
|
| 458 | + * @return string[] |
|
| 456 | 459 | */ |
| 457 | 460 | public function __sleep() |
| 458 | 461 | { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | private $clients = []; |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * @return mixed |
|
| 31 | + * @return ClientRegistryInterface |
|
| 32 | 32 | */ |
| 33 | 33 | public function getRegistry() |
| 34 | 34 | { |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | public function remove($object) |
| 95 | 95 | { |
| 96 | 96 | $this->getUnitOfWork()->getEntityPersister(get_class($object)) |
| 97 | - ->delete($object); |
|
| 97 | + ->delete($object); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** {@inheritdoc} */ |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |
| 175 | - * @param $className |
|
| 175 | + * @param string $className |
|
| 176 | 176 | * @param \stdClass $data |
| 177 | 177 | * |
| 178 | 178 | * @return ObjectManagerAware|object |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * INTERNAL: |
| 231 | 231 | * Registers an entity as managed. |
| 232 | 232 | * |
| 233 | - * @param object $entity The entity. |
|
| 233 | + * @param Proxy $entity The entity. |
|
| 234 | 234 | * @param array $id The identifier values. |
| 235 | 235 | * @param \stdClass|null $data The original entity data. |
| 236 | 236 | * |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * @param $className |
|
| 53 | + * @param string $className |
|
| 54 | 54 | * |
| 55 | 55 | * @return \ReflectionProperty[] indexed by property internal name |
| 56 | 56 | */ |