1 | <?php |
||
7 | abstract class TeamworkObject |
||
8 | { |
||
9 | /** |
||
10 | * @var RequestableInterface |
||
11 | */ |
||
12 | protected $client; |
||
13 | |||
14 | /** |
||
15 | * @var null|integer |
||
16 | */ |
||
17 | protected $id; |
||
18 | |||
19 | /** |
||
20 | * @param RequestableInterface $client |
||
21 | * @param null $id |
||
22 | */ |
||
23 | public function __construct(RequestableInterface $client, $id = null) |
||
28 | |||
29 | /** |
||
30 | * Get ID |
||
31 | * |
||
32 | * simple getter for ID |
||
33 | * |
||
34 | * @return null |
||
35 | */ |
||
36 | public function getID() |
||
40 | |||
41 | /** |
||
42 | * Are Arguments Valid |
||
43 | * |
||
44 | * @param array $args |
||
45 | * @param string[] $accepted |
||
46 | * |
||
47 | * @return null|bool |
||
48 | */ |
||
49 | protected function areArgumentsValid($args, array $accepted) |
||
63 | } |