Completed
Push — master ( 21c9d9...7e68f2 )
by Jelle
03:00
created
src/Entity/Entity.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -90,6 +90,10 @@
 block discarded – undo
90 90
     return $reversedEntities;
91 91
   }
92 92
 
93
+  /**
94
+   * @param string $entityType
95
+   * @param string $idName
96
+   */
93 97
   public static function transform($value, $context, EntityManagerInterface $entityManager, $entityType, $idName, array $contextPropertyMap = array()) {
94 98
     $data = static::transformHelper($value, $context, $idName, $contextPropertyMap);
95 99
     $entity = $entityManager->repository($entityType)->byId($data['id']);
Please login to merge, or discard this patch.
src/Entity/EntityManager.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,8 @@
 block discarded – undo
220 220
   /**
221 221
    * Gets the property map.
222 222
    *
223
-   * @return FastNorth\PropertyMapper\Map
223
+   * @param string $entityType
224
+   * @return \FastNorth\PropertyMapper\MapInterface
224 225
    *   The property map.
225 226
    */
226 227
   protected function getPropertyMap($entityType) {
Please login to merge, or discard this patch.
src/Entity/Factory/Factory.php 1 patch
Doc Comments   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,16 +32,10 @@  discard block
 block discarded – undo
32 32
   /**
33 33
    * Creates a \TheSportsDb\Facotory\Factory object.
34 34
    *
35
-   * @param TheSportsDb\Http\TheSportsDbClientInterface $sportsDbClient
35
+   * @param TheSportsDbClientInterface $sportsDbClient
36 36
    *   The sports db client to make the requests.
37
-   * @param string $realClass
38
-   *   The fully qualified classname of the entity to create.
39
-   * @param string $proxyClass
40
-   *   The fully qualified classname of the proxy entity to create.
41
-   * @param TheSportsDb\Entity\EntityManagerInterface $entityManager
37
+   * @param EntityManagerInterface $entityManager
42 38
    *   The factory container.
43
-   * @param MapperInterface $propertyMapper
44
-   *   The property mapper.
45 39
    */
46 40
   public function __construct(TheSportsDbClientInterface $sportsDbClient, EntityManagerInterface $entityManager = NULL) {
47 41
     $this->sportsDbClient = $sportsDbClient;
@@ -76,6 +70,9 @@  discard block
 block discarded – undo
76 70
     return $entity;
77 71
   }
78 72
 
73
+  /**
74
+   * @param string $entityType
75
+   */
79 76
   public function isFullObject(\stdClass $object, $entityType) {
80 77
     $reflection = new \ReflectionClass($this->entityManager->getClass($entityType));
81 78
     $defaultProperties = $reflection->getDefaultProperties();
Please login to merge, or discard this patch.
src/Entity/Proxy/Proxy.php 1 patch
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,6 @@
 block discarded – undo
44 44
    *
45 45
    * @param \stdClass $values
46 46
    *   The sport data.
47
-   * @param \TheSportsDb\Http\TheSportsDbClientInterface $sportsDbClient
48
-   *   A sports db client
49
-   * @param \TheSportsDb\Entity\Factory\FactoryInterface $factory
50
-   *   The sport factory.
51 47
    */
52 48
   public function __construct(\stdClass $values) {
53 49
     $this->properties = new \stdClass();
Please login to merge, or discard this patch.
src/TheSportsDb.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
   /**
52 52
    * Get a league by id.
53 53
    *
54
-   * @param int $league_id
54
+   * @param int $leagueId
55 55
    *   The league id.
56 56
    *
57 57
    * @return \TheSportsDb\Entity\LeagueInterface
Please login to merge, or discard this patch.