Browse Source

Merge pull request #11439 from mosaxiv/phpdoc

Updated PHPDoc
Mark Story 8 years ago
parent
commit
810d6078cf
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/Datasource/RepositoryInterface.php
  2. 2 2
      src/ORM/Marshaller.php

+ 2 - 2
src/Datasource/RepositoryInterface.php

@@ -182,7 +182,7 @@ interface RepositoryInterface
      *
      * @param array $data The data to build an entity with.
      * @param array $options A list of options for the objects hydration.
-     * @return array An array of hydrated records.
+     * @return \Cake\Datasource\EntityInterface[] An array of hydrated records.
      */
     public function newEntities(array $data, array $options = []);
 
@@ -221,7 +221,7 @@ interface RepositoryInterface
      * data merged in
      * @param array $data list of arrays to be merged into the entities
      * @param array $options A list of options for the objects hydration.
-     * @return array
+     * @return \Cake\Datasource\EntityInterface[]
      */
     public function patchEntities($entities, array $data, array $options = []);
 }

+ 2 - 2
src/ORM/Marshaller.php

@@ -338,7 +338,7 @@ class Marshaller
      *
      * @param array $data The data to hydrate.
      * @param array $options List of options
-     * @return array An array of hydrated records.
+     * @return \Cake\Datasource\EntityInterface[] An array of hydrated records.
      * @see \Cake\ORM\Table::newEntities()
      * @see \Cake\ORM\Entity::$_accessible
      */
@@ -361,7 +361,7 @@ class Marshaller
      * Builds the related entities and handles the special casing
      * for junction table entities.
      *
-     * @param \Cake\ORM\BelongsToMany $assoc The association to marshal.
+     * @param \Cake\ORM\Association\BelongsToMany $assoc The association to marshal.
      * @param array $data The data to convert into entities.
      * @param array $options List of options.
      * @return array An array of built entities.