1 | <?php namespace Rossedman\Teamwork; |
||
5 | abstract class AbstractObject { |
||
6 | |||
7 | /** |
||
8 | * @var RequestableInterface |
||
9 | */ |
||
10 | protected $client; |
||
11 | |||
12 | /** |
||
13 | * TODO: is this needed? |
||
14 | */ |
||
15 | protected $request; |
||
16 | |||
17 | /** |
||
18 | * @var null|integer |
||
19 | */ |
||
20 | protected $id; |
||
21 | |||
22 | /** |
||
23 | * @param RequestableInterface $client |
||
24 | * @param null $id |
||
25 | */ |
||
26 | public function __construct(RequestableInterface $client, $id = null) |
||
31 | |||
32 | /** |
||
33 | * Get ID |
||
34 | * |
||
35 | * simple getter for ID |
||
36 | * |
||
37 | * @return null |
||
38 | */ |
||
39 | public function getID() |
||
43 | |||
44 | /** |
||
45 | * Are Arguments Valid |
||
46 | * |
||
47 | * @param array $args |
||
48 | * @param string[] $accepted |
||
49 | * |
||
50 | * @return null|bool |
||
51 | */ |
||
52 | protected function areArgumentsValid($args, array $accepted) |
||
69 | } |