1 | <?php |
||
9 | class Team extends Entity |
||
10 | { |
||
11 | protected $name; |
||
12 | protected $workers = []; |
||
13 | protected $managers = []; |
||
14 | protected $tasks = []; |
||
15 | protected $hub; |
||
16 | protected $timeCreated; |
||
17 | protected $timeLastModified; |
||
18 | |||
19 | protected $endpoint = 'teams'; |
||
20 | |||
21 | protected static $properties = [ |
||
22 | 'id', |
||
23 | 'name', |
||
24 | 'workers', |
||
25 | 'managers', |
||
26 | 'tasks', |
||
27 | 'hub', |
||
28 | 'timeCreated', |
||
29 | 'timeLastModified', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getName() |
||
39 | |||
40 | /** |
||
41 | * @param string $name |
||
42 | */ |
||
43 | public function setName($name) |
||
47 | |||
48 | /** |
||
49 | * @return array |
||
50 | */ |
||
51 | public function getWorkers(): array |
||
55 | |||
56 | /** |
||
57 | * @param array $workers |
||
58 | */ |
||
59 | public function setWorkers(array $workers) |
||
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | public function getManagers(): array |
||
71 | |||
72 | /** |
||
73 | * @param array $managers |
||
74 | */ |
||
75 | public function setManagers(array $managers) |
||
79 | |||
80 | /** |
||
81 | * @return array |
||
82 | */ |
||
83 | public function getTasks(): array |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getHub() |
||
95 | |||
96 | /** |
||
97 | * @param string $hub |
||
98 | */ |
||
99 | public function setHub($hub) |
||
103 | |||
104 | /** |
||
105 | * @return \DateTime |
||
106 | */ |
||
107 | public function getTimeCreated() |
||
111 | |||
112 | /** |
||
113 | * @return \DateTime |
||
114 | */ |
||
115 | public function getTimeLastModified() |
||
119 | |||
120 | /** |
||
121 | * @param array $metadata |
||
122 | * @internal |
||
123 | */ |
||
124 | public function setMetadata(array $metadata) |
||
128 | } |
||
129 |