1 | <?php |
||
7 | class EvernoteMessage |
||
8 | { |
||
9 | /** @var string */ |
||
10 | protected $title; |
||
11 | |||
12 | /** @var EvernoteContent */ |
||
13 | protected $content; |
||
14 | |||
15 | /** @var array */ |
||
16 | protected $tags = []; |
||
17 | |||
18 | /** @var bool */ |
||
19 | protected $done = false; |
||
20 | |||
21 | /** @var bool */ |
||
22 | protected $sandbox = false; |
||
23 | |||
24 | /** @var int|null */ |
||
25 | protected $reminder; |
||
26 | |||
27 | /** |
||
28 | * @param string $title |
||
29 | * |
||
30 | * @return static |
||
31 | */ |
||
32 | 3 | public static function create($title) |
|
36 | |||
37 | /** |
||
38 | * @param string $title |
||
39 | */ |
||
40 | 12 | public function __construct($title) |
|
44 | |||
45 | /** |
||
46 | * Set the ticket title. |
||
47 | * |
||
48 | * @param string $title |
||
49 | * |
||
50 | * @return $this |
||
51 | */ |
||
52 | 1 | public function title($title) |
|
58 | |||
59 | /** |
||
60 | * Set the ticket content. |
||
61 | * |
||
62 | * @param EvernoteContent $content |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | 3 | public function content(EvernoteContent $content) |
|
72 | |||
73 | /** |
||
74 | * Set the ticket tags. |
||
75 | * |
||
76 | * @param array $tags |
||
77 | * |
||
78 | * @return $this |
||
79 | */ |
||
80 | public function tags($tags) |
||
86 | |||
87 | /** |
||
88 | * Set the ticket as done. |
||
89 | * |
||
90 | * @return $this |
||
91 | */ |
||
92 | 3 | public function done() |
|
98 | |||
99 | /** |
||
100 | * Enable sandbox mode. |
||
101 | * |
||
102 | * @return $this |
||
103 | */ |
||
104 | 1 | public function sandbox() |
|
110 | |||
111 | /** |
||
112 | * Set the ticket reminder date. |
||
113 | * |
||
114 | * @param string|DateTime $reminder |
||
115 | * |
||
116 | * @return $this |
||
117 | */ |
||
118 | 4 | public function reminder($reminder) |
|
128 | |||
129 | /** |
||
130 | * @return array |
||
131 | */ |
||
132 | 12 | public function toArray() |
|
143 | } |
||
144 |