| 1 | <?php |
||
| 11 | class Countries |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The actual Countries class is a service. |
||
| 15 | * |
||
| 16 | * @var CountriesService |
||
| 17 | */ |
||
| 18 | private $countriesService; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Service constructor. |
||
| 22 | * |
||
| 23 | * @param $config |
||
| 24 | * @param Cache $cache |
||
| 25 | * @param Helper $helper |
||
| 26 | * @param Hydrator $hydrator |
||
| 27 | * @param Repository $repository |
||
| 28 | */ |
||
| 29 | public function __construct( |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Call a method. |
||
| 41 | * |
||
| 42 | * @param $name |
||
| 43 | * @param array $arguments |
||
| 44 | * @return bool|mixed |
||
| 45 | */ |
||
| 46 | public function __call($name, array $arguments = []) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Translate static methods calls to dynamic. |
||
| 53 | * |
||
| 54 | * @param $name |
||
| 55 | * @param array $arguments |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | public static function __callStatic($name, array $arguments = []) |
||
| 62 | } |
||
| 63 |