Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
132 | 12 | public function toArray() |
|
133 | { |
||
134 | return [ |
||
135 | 12 | 'title' => $this->title, |
|
136 | 12 | 'content' => $this->content ? $this->content->toArray() : null, |
|
137 | 12 | 'reminder' => $this->reminder, |
|
138 | 12 | 'sandbox' => $this->sandbox, |
|
139 | 12 | 'done' => $this->done, |
|
140 | 12 | 'tags' => $this->tags, |
|
141 | 12 | ]; |
|
142 | } |
||
143 | } |
||
144 |