@@ -261,11 +261,17 @@ discard block |
||
| 261 | 261 | return $this->attributes['proxyNamespace']; |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | + /** |
|
| 265 | + * @param boolean $bool |
|
| 266 | + */ |
|
| 264 | 267 | public function setAutoGenerateProxyClasses($bool) |
| 265 | 268 | { |
| 266 | 269 | $this->attributes['autoGenerateProxyClasses'] = $bool; |
| 267 | 270 | } |
| 268 | 271 | |
| 272 | + /** |
|
| 273 | + * @return boolean |
|
| 274 | + */ |
|
| 269 | 275 | public function getAutoGenerateProxyClasses() |
| 270 | 276 | { |
| 271 | 277 | return $this->attributes['autoGenerateProxyClasses']; |
@@ -274,7 +280,7 @@ discard block |
||
| 274 | 280 | /** |
| 275 | 281 | * @param string $name |
| 276 | 282 | * @param string $className |
| 277 | - * @param array $options |
|
| 283 | + * @param string $options |
|
| 278 | 284 | */ |
| 279 | 285 | public function addDesignDocument($name, $className, $options) |
| 280 | 286 | { |
@@ -320,7 +320,7 @@ |
||
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | - * @param object $document |
|
| 323 | + * @param \Doctrine\Tests\Models\CMS\CmsUser $document |
|
| 324 | 324 | * @return bool |
| 325 | 325 | */ |
| 326 | 326 | public function contains($document) |
@@ -26,6 +26,9 @@ |
||
| 26 | 26 | |
| 27 | 27 | private $documentManager; |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param \Doctrine\ODM\CouchDB\DocumentManager $documentManager |
|
| 31 | + */ |
|
| 29 | 32 | function __construct($document, $documentManager) |
| 30 | 33 | { |
| 31 | 34 | $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 | { |
@@ -419,7 +420,7 @@ discard block |
||
| 419 | 420 | * Sets the document identifier of a document. |
| 420 | 421 | * |
| 421 | 422 | * @param object $document |
| 422 | - * @param mixed $id |
|
| 423 | + * @param string $id |
|
| 423 | 424 | */ |
| 424 | 425 | public function setIdentifierValue($document, $id) |
| 425 | 426 | { |
@@ -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 | { |
@@ -41,6 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * {@inheritDoc} |
| 44 | + * @param string[] $locator |
|
| 44 | 45 | */ |
| 45 | 46 | public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION) |
| 46 | 47 | { |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | |
| 39 | 39 | private $metadataResolver; |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param ClassMetadataFactory $metadataFactory |
|
| 43 | + */ |
|
| 41 | 44 | public function __construct($metadataFactory, $metadataResolver) |
| 42 | 45 | { |
| 43 | 46 | $this->metadataFactory = $metadataFactory; |
@@ -137,9 +137,9 @@ |
||
| 137 | 137 | /** |
| 138 | 138 | * Generates a proxy class file. |
| 139 | 139 | * |
| 140 | - * @param $class |
|
| 141 | - * @param $fileName |
|
| 142 | - * @param $template |
|
| 140 | + * @param ClassMetadata $class |
|
| 141 | + * @param string $fileName |
|
| 142 | + * @param string $template |
|
| 143 | 143 | */ |
| 144 | 144 | private function generateProxyClass($class, $fileName, $template) |
| 145 | 145 | { |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | $this->metadataResolver); |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $documentName |
|
| 150 | + */ |
|
| 148 | 151 | private function assertValidDocumentType($documentName, $document, $type) |
| 149 | 152 | { |
| 150 | 153 | if ($documentName && !($document instanceof $documentName)) { |
@@ -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(); |