@@ -46,6 +46,9 @@ |
||
| 46 | 46 | return $this->logger; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @return string |
|
| 51 | + */ |
|
| 49 | 52 | public function getTestDatabase() |
| 50 | 53 | { |
| 51 | 54 | return TestUtil::getTestDatabase(); |
@@ -41,6 +41,9 @@ |
||
| 41 | 41 | }); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param \Closure $closure |
|
| 46 | + */ |
|
| 44 | 47 | public function wrapRemove($closure) |
| 45 | 48 | { |
| 46 | 49 | $group1 = new \Doctrine\Tests\Models\CMS\CmsGroup(); |
@@ -65,6 +65,9 @@ |
||
| 65 | 65 | return new \Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver($reader); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | + /** |
|
| 69 | + * @param string $entityClassName |
|
| 70 | + */ |
|
| 68 | 71 | protected function ensureIsLoaded($entityClassName) |
| 69 | 72 | { |
| 70 | 73 | new $entityClassName; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * @return NativeQuery |
|
| 21 | + * @return Query |
|
| 22 | 22 | */ |
| 23 | 23 | protected function createDoctrineViewQuery() |
| 24 | 24 | { |
@@ -250,7 +250,7 @@ |
||
| 250 | 250 | /** |
| 251 | 251 | * @param string $name |
| 252 | 252 | * @param string $className |
| 253 | - * @param array $options |
|
| 253 | + * @param string $options |
|
| 254 | 254 | */ |
| 255 | 255 | public function addDesignDocument($name, $className, $options) |
| 256 | 256 | {
|
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | /** |
| 259 | 259 | * Refresh the given document by querying the CouchDB to get the current state. |
| 260 | 260 | * |
| 261 | - * @param object $document |
|
| 261 | + * @param \ProxyManager\Proxy\GhostObjectInterface $document |
|
| 262 | 262 | */ |
| 263 | 263 | public function refresh($document) |
| 264 | 264 | {
|
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | /** |
| 306 | - * @param object $document |
|
| 306 | + * @param \Doctrine\Tests\Models\CMS\CmsUser $document |
|
| 307 | 307 | * @return bool |
| 308 | 308 | */ |
| 309 | 309 | public function contains($document) |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | private $documentManager; |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param \Doctrine\ODM\CouchDB\DocumentManager $documentManager |
|
| 14 | + */ |
|
| 12 | 15 | function __construct($document, $documentManager) |
| 13 | 16 | {
|
| 14 | 17 | $this->document = $document; |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | * - reflClass (ReflectionClass) |
| 271 | 271 | * - reflFields (ReflectionProperty array) |
| 272 | 272 | * |
| 273 | - * @return array The names of all the fields that should be serialized. |
|
| 273 | + * @return string[] The names of all the fields that should be serialized. |
|
| 274 | 274 | */ |
| 275 | 275 | public function __sleep() |
| 276 | 276 | {
|
@@ -330,6 +330,7 @@ discard block |
||
| 330 | 330 | |
| 331 | 331 | /** |
| 332 | 332 | * Restores some state that can not be serialized/unserialized. |
| 333 | + * @param \Doctrine\Common\Persistence\Mapping\RuntimeReflectionService $reflService |
|
| 333 | 334 | */ |
| 334 | 335 | public function wakeupReflection($reflService) |
| 335 | 336 | {
|
@@ -518,7 +519,7 @@ discard block |
||
| 518 | 519 | * Since CouchDB only allows exactly one identifier field this is a proxy |
| 519 | 520 | * to {@see getIdentifier()} and returns an array.
|
| 520 | 521 | * |
| 521 | - * @return array |
|
| 522 | + * @return string[] |
|
| 522 | 523 | */ |
| 523 | 524 | public function getIdentifierFieldNames() |
| 524 | 525 | {
|
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | * is still not loaded. |
| 167 | 167 | * |
| 168 | 168 | * @param string $className The name of the class for which the metadata should get loaded. |
| 169 | - * @return array |
|
| 169 | + * @return string[] |
|
| 170 | 170 | * @throws MappingException |
| 171 | 171 | */ |
| 172 | 172 | protected function loadMetadata($className) |