| 1 | <?php |
||
| 12 | abstract class AbstractApi implements ApiInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Client |
||
| 16 | */ |
||
| 17 | protected $client; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The method parameters |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $parameters = array(); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Instanciat an API |
||
| 28 | * |
||
| 29 | * @param Client $client |
||
| 30 | */ |
||
| 31 | public function __construct(Client $client) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function setParameters(array $parameters) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | abstract public function execute(); |
||
| 48 | } |
||
| 49 |