Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function configureFrom(array $config): Header |
||
22 | { |
||
23 | $propertyAccessor = new PropertyAccessor(); |
||
24 | |||
25 | foreach ($this->configFields as $configField) { |
||
26 | if (isset($config[$configField])) { |
||
27 | $propertyAccessor->setValue($this->header, $configField, $config[$configField]); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | return $this->header; |
||
32 | } |
||
33 | } |
||
34 |