@@ -16,5 +16,9 @@ |
||
| 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 | } |
@@ -25,6 +25,7 @@ |
||
| 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 | } |
@@ -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; |
@@ -130,6 +130,7 @@ |
||
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | 132 | * {@inheritdoc} |
| 133 | + * @param string $entityType |
|
| 133 | 134 | */ |
| 134 | 135 | public function getPropertyMapDefinition($entityType) { |
| 135 | 136 | if (!isset($this->propertyMapDefinitions[$entityType])) { |