Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Section extends AbstractEntity { |
||
22 | |||
23 | use CrudTrait; |
||
24 | |||
25 | const TYPE = 'section'; |
||
26 | |||
27 | final public function __toString (): string { |
||
28 | return "sections/{$this->getGid()}"; |
||
29 | } |
||
30 | |||
31 | final protected function _getDir (): string { |
||
32 | return "{$this->getProject()}/sections"; |
||
33 | } |
||
34 | |||
35 | protected function _getMap (): array { |
||
38 | ]; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return Task[] |
||
43 | */ |
||
44 | public function getTasks () { |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Instantiates and returns a new task. |
||
50 | * |
||
51 | * @depends after-create |
||
52 | * @return Task |
||
53 | */ |
||
54 | public function newTask () { |
||
58 | } |
||
59 | } |