| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | class Tag extends AbstractEntity implements IteratorAggregate { |
||
| 34 | |||
| 35 | use CrudTrait; |
||
| 36 | |||
| 37 | const DIR = 'tags'; |
||
| 38 | const TYPE = 'tag'; |
||
| 39 | |||
| 40 | protected const MAP = [ |
||
| 41 | 'followers' => [User::class], |
||
| 42 | 'workspace' => Workspace::class |
||
| 43 | ]; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param array $filter |
||
| 47 | * @return Traversable|Task[] |
||
| 48 | */ |
||
| 49 | public function getIterator (array $filter = Task::GET_INCOMPLETE) { |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param array $filter |
||
| 55 | * @return Task[] |
||
| 56 | */ |
||
| 57 | public function getTasks (array $filter = Task::GET_INCOMPLETE) { |
||
| 59 | } |
||
| 60 | } |