| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 1 | public function add(string $rel, string $href): Link |
|
| 28 | { |
||
| 29 | $attributes = [ |
||
| 30 | 1 | 'rel' => $rel, |
|
| 31 | 1 | 'href' => $href, |
|
| 32 | ]; |
||
| 33 | |||
| 34 | 1 | $this->store[] = [ |
|
| 35 | 1 | "renderTag", |
|
| 36 | [ |
||
| 37 | 1 | $this->getTag(), |
|
| 38 | 1 | $attributes, |
|
| 39 | 1 | "/", |
|
| 40 | ], |
||
| 41 | 1 | $this->indent(), |
|
| 42 | ]; |
||
| 43 | |||
| 44 | 1 | return $this; |
|
| 45 | } |
||
| 55 |