| 1 | <?php |
||
| 12 | abstract class AbstractModel implements ModelInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Client |
||
| 16 | */ |
||
| 17 | protected $client; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Constructor |
||
| 21 | * |
||
| 22 | * @param Client $client |
||
| 23 | */ |
||
| 24 | public function __construct(Client $client = null) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param Client $client |
||
| 31 | */ |
||
| 32 | public function setClient(Client $client) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return Client |
||
| 39 | */ |
||
| 40 | public function getClient() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritDoc} |
||
| 47 | */ |
||
| 48 | public static function getMapping() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $method |
||
| 55 | * @param array $arguments |
||
| 56 | */ |
||
| 57 | protected function call($method, $arguments) |
||
| 66 | } |
||
| 67 |