| Total Complexity | 4 |
| Total Lines | 35 |
| 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 | protected static $map = [ |
||
| 28 | 'project' => Project::class |
||
| 29 | ]; |
||
| 30 | |||
| 31 | final public function __toString (): string { |
||
| 32 | return "sections/{$this->getGid()}"; |
||
| 33 | } |
||
| 34 | |||
| 35 | final protected function _getDir (): string { |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return Task[] |
||
| 41 | */ |
||
| 42 | public function getTasks () { |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Instantiates and returns a new task. |
||
| 48 | * |
||
| 49 | * @depends after-create |
||
| 50 | * @return Task |
||
| 51 | */ |
||
| 52 | public function newTask () { |
||
| 56 | } |
||
| 57 | } |