| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | public function setOptions(array $options): self  | 
            ||
| 20 |     { | 
            ||
| 21 | $i = 0;  | 
            ||
| 22 |         foreach ($options as $key => $value) { | 
            ||
| 23 |             if (!array_has($this->palette, $key)) { | 
            ||
| 24 | $this->palette[$key] = $this->colors[$i % count($this->colors)];  | 
            ||
| 25 | $i++;  | 
            ||
| 26 | }  | 
            ||
| 27 | }  | 
            ||
| 28 | $this->options = $options;  | 
            ||
| 29 | |||
| 30 | return $this;  | 
            ||
| 31 | }  | 
            ||
| 84 | }  |