| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 20 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 74 | public function setOptions(?Iterable $config=null): AdapterInterface  | 
            ||
| 75 |     { | 
            ||
| 76 |         if ($config === null) { | 
            ||
| 77 | return $this;  | 
            ||
| 78 | }  | 
            ||
| 79 | |||
| 80 |         foreach ($config as $option => $value) { | 
            ||
| 81 |             switch ($option) { | 
            ||
| 82 | case 'map':  | 
            ||
| 83 | $this->map = $value;  | 
            ||
| 84 | break;  | 
            ||
| 85 | |||
| 86 | case 'attr_sync_cache':  | 
            ||
| 87 | $this->attr_sync_cache = (int)$value;  | 
            ||
| 88 | break;  | 
            ||
| 89 | }  | 
            ||
| 90 | }  | 
            ||
| 91 | |||
| 92 | return $this;  | 
            ||
| 93 | }  | 
            ||
| 94 | |||
| 117 | 
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.