| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function withAttributes(iterable $attributes): static |
||
| 40 | { |
||
| 41 | if ($attributes instanceof Traversable) { |
||
| 42 | foreach ($attributes as $name => $value) { |
||
| 43 | $this->withAttribute($name, $value); |
||
| 44 | } |
||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 48 | $this->attributes = (array) $attributes; |
||
| 49 | return $this; |
||
| 50 | } |
||
| 81 |