@@ -28,7 +28,7 @@ |
||
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); |
@@ -27,5 +27,8 @@ |
||
27 | 27 | */ |
28 | 28 | public function create(\stdClass $values, $entityType); |
29 | 29 | |
30 | + /** |
|
31 | + * @return \TheSportsDb\Entity\EntityManagerInterface |
|
32 | + */ |
|
30 | 33 | public function getEntityManager(); |
31 | 34 | } |
@@ -15,6 +15,8 @@ |
||
15 | 15 | |
16 | 16 | /** |
17 | 17 | * {@inheritdoc} |
18 | + * @param string $endpoint |
|
19 | + * @return \stdClass |
|
18 | 20 | */ |
19 | 21 | public function doRequest($endpoint, array $parameters = array()); |
20 | 22 | } |
@@ -7,8 +7,8 @@ |
||
7 | 7 | namespace TheSportsDb\Entity\Proxy; |
8 | 8 | |
9 | 9 | use TheSportsDb\Entity\EntityInterface; |
10 | -use TheSportsDb\Http\TheSportsDbClientInterface; |
|
11 | 10 | use TheSportsDb\Entity\EntityManagerConsumerInterface; |
11 | +use TheSportsDb\Http\TheSportsDbClientInterface; |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Interface for proxy objects. |
@@ -18,8 +18,7 @@ |
||
18 | 18 | $return = $val; |
19 | 19 | if (method_exists($val, 'raw')) { |
20 | 20 | $return = $val->raw(); |
21 | - } |
|
22 | - elseif (is_array($val)) { |
|
21 | + } elseif (is_array($val)) { |
|
23 | 22 | $return = array(); |
24 | 23 | foreach ($val as $v) { |
25 | 24 | $return[] = method_exists($v, 'raw') ? $v->raw() : $v; |