| 1 | <?php |
||
| 17 | class TaskProgress |
||
| 18 | { |
||
| 19 | const TODO = 'todo'; |
||
| 20 | const DOING = 'doing'; |
||
| 21 | const DONE = 'done'; |
||
| 22 | |||
| 23 | private $progress; |
||
| 24 | |||
| 25 | private function __construct(string $progress) |
||
| 29 | |||
| 30 | public static function todo() |
||
| 34 | |||
| 35 | public static function doing() |
||
| 39 | |||
| 40 | public static function done() |
||
| 44 | |||
| 45 | public function progress() : string |
||
| 49 | |||
| 50 | public function __toString() : string |
||
| 54 | } |
||
| 55 |