Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
60 | public function __toString() |
||
61 | { |
||
62 | if ($this->isType(Line::TYPE_URI)) { |
||
63 | return $this->value; |
||
64 | } |
||
65 | |||
66 | if (true === $this->value) { |
||
67 | return sprintf('#%s', $this->tag); |
||
68 | } |
||
69 | |||
70 | if (false === $this->value) { |
||
71 | return ''; |
||
72 | } |
||
73 | |||
74 | return sprintf('#%s:%s', $this->tag, $this->value); |
||
75 | } |
||
76 | |||
86 |