Completed
Branch master (dba457)
by Jelle
04:01 queued 53s
created
src/Entity/Factory/FactoryContainerInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@  discard block
 block discarded – undo
18 18
    *
19 19
    * @param \TheSportsDb\Entity\Factory\FactoryInterface $factory
20 20
    *   The factory to add.
21
+   * @return void
21 22
    */
22 23
   public function addFactory(FactoryInterface $factory, $entityType);
23 24
 
@@ -35,5 +36,8 @@  discard block
 block discarded – undo
35 36
    */
36 37
   public function getFactory($class);
37 38
 
39
+  /**
40
+   * @return void
41
+   */
38 42
   public function setDefaultFactory(FactoryInterface $factory);
39 43
 }
Please login to merge, or discard this patch.
src/Entity/Proxy/ProxyInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -16,5 +16,9 @@
 block discarded – undo
16 16
  * @author Jelle Sebreghts
17 17
  */
18 18
 interface ProxyInterface extends EntityInterface, EntityManagerConsumerInterface {
19
+
20
+  /**
21
+   * @return void
22
+   */
19 23
   public function setSportsDbClient(TheSportsDbClientInterface $sportsDbClient);
20 24
 }
Please login to merge, or discard this patch.
src/Entity/Repository/RepositoryContainerInterface.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,8 +16,9 @@
 block discarded – undo
16 16
   /**
17 17
    * Add a repository for a class.
18 18
    *
19
-   * @param \TheSportsDb\Repository\RepositoryInterface $repository
19
+   * @param RepositoryInterface $repository
20 20
    *   The repository to add.
21
+   * @return void
21 22
    */
22 23
   public function addRepository(RepositoryInterface $repository);
23 24
 
Please login to merge, or discard this patch.
src/Entity/SportInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
    *
26 26
    * @param \TheSportsDb\Entity\LeagueInterface $league
27 27
    *   The league to add.
28
+   * @return void
28 29
    */
29 30
   public function addLeague(LeagueInterface $league);
30 31
 }
Please login to merge, or discard this patch.
src/Entity/EntityManagerConsumerInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -16,5 +16,9 @@
 block discarded – undo
16 16
  * @author Jelle Sebreghts
17 17
  */
18 18
 interface ProxyInterface extends EntityInterface, EntityManagerConsumerInterface {
19
+
20
+  /**
21
+   * @return void
22
+   */
19 23
   public function setSportsDbClient(TheSportsDbClientInterface $sportsDbClient);
20 24
 }
Please login to merge, or discard this patch.
src/Entity/Repository/RepositoryInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
    *
26 26
    * @param \TheSportsDb\Entity\LeagueInterface $league
27 27
    *   The league to add.
28
+   * @return void
28 29
    */
29 30
   public function addLeague(LeagueInterface $league);
30 31
 }
Please login to merge, or discard this patch.
src/Entity/Entity.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@
 block discarded – undo
102 102
     return $entity;
103 103
   }
104 104
 
105
+  /**
106
+   * @param string $idName
107
+   */
105 108
   public static function transformHelper($value, $context, $idName, array $contextPropertyMap = array()) {
106 109
     $data = array();
107 110
     $data['id'] = is_object($value) ? $value->{$idName} : $value;
Please login to merge, or discard this patch.
src/Entity/EntityManager.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -182,6 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
   /**
184 184
    * Initializes the property map.
185
+   * @param string $entityType
185 186
    */
186 187
   protected function initPropertyMap($entityType) {
187 188
     $this->propertyMaps[$entityType] = new Map();
@@ -191,12 +192,20 @@  discard block
 block discarded – undo
191 192
         $transform = $args[2][0];
192 193
         $reverse = $args[2][1];
193 194
         $args[2] = new Callback(
195
+
196
+          /**
197
+           * @param string $value
198
+           */
194 199
           function($value, $context) use ($entityManager, $transform) {
195 200
             if ($entityManager->isEmptyValue($value)) {
196 201
               return $value;
197 202
             }
198 203
             return call_user_func_array($transform, array($value, $context, $entityManager));
199 204
           },
205
+
206
+          /**
207
+           * @param string $value
208
+           */
200 209
           function($value, $context) use ($entityManager, $reverse) {
201 210
             if ($entityManager->isEmptyValue($value)) {
202 211
               return $value;
Please login to merge, or discard this patch.
src/Entity/EntityManagerInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
    *
29 29
    * @param string $entityType
30 30
    *
31
-   * @return TheSportsDb\Entity\Factory\FactoryInterface
31
+   * @return Factory\FactoryInterface
32 32
    *   The repositort for the given entity type.
33 33
    */
34 34
   public function factory($entityType);
Please login to merge, or discard this patch.