-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTodo.php
More file actions
46 lines (36 loc) · 749 Bytes
/
Copy pathTodo.php
File metadata and controls
46 lines (36 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Created by PhpStorm.
* User: iwamura
* Date: 14/11/22
* Time: 20:28
*/
class Todo {
const STATUS_NEW = 0;
const STATUS_DOING = 1;
const STATUS_DONE= 2;
/** @var string 見出し */
public $title;
/** @var string 詳細 */
public $detail;
/** @var Datetime 期日 */
public $dueDate;
/** @var int status */
private $_status = self::STATUS_NEW;
public function __construct($title)
{
$this->title = $title;
}
public function getStatus()
{
return $this->_status;
}
public function setDoing()
{
$this->_status = self::STATUS_DOING;
}
public function setDone()
{
$this->_status = self::STATUS_DONE;
}
}