| Conditions | 5 |
| Paths | 5 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 68 | public function setOptions(? Iterable $config = null) : AdapterInterface |
||
| 69 | { |
||
| 70 | if ($config === null) { |
||
| 71 | return $this; |
||
| 72 | } |
||
| 73 | |||
| 74 | foreach ($config as $option => $value) { |
||
| 75 | switch ($option) { |
||
| 76 | case 'map': |
||
| 77 | $this->map = $value; |
||
| 78 | break; |
||
| 79 | |||
| 80 | case 'attr_sync_cache': |
||
| 81 | $this->attr_sync_cache = (int)$value; |
||
| 82 | break; |
||
| 83 | } |
||
| 84 | } |
||
| 85 | |||
| 86 | return $this; |
||
| 87 | } |
||
| 88 | |||
| 111 |