Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function toDto() |
||
44 | { |
||
45 | $icon = null; |
||
46 | if(isset($this->icon)){ |
||
47 | $icon = route('api.icon.serve', ['id' => $this->uuid]); |
||
48 | } |
||
49 | return new CharacteristicDto( |
||
50 | $this->uuid, |
||
51 | $this->page_label, |
||
52 | $this->type, |
||
53 | $icon, |
||
54 | $this->pretty_page_label, |
||
55 | $this->opt ?? [] |
||
56 | ); |
||
74 |