@@ -90,6 +90,10 @@ |
||
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']); |
@@ -220,7 +220,8 @@ |
||
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) { |
@@ -32,16 +32,10 @@ discard block |
||
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 |
||
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(); |
@@ -44,10 +44,6 @@ |
||
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(); |
@@ -51,7 +51,7 @@ |
||
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 |