| @@ 98-105 (lines=8) @@ | ||
| 95 | $feed->setItems(array_map([$this, 'readItemNode'], $value)); |
|
| 96 | break; |
|
| 97 | ||
| 98 | default: |
|
| 99 | try { |
|
| 100 | $this->accessor->setValue($feed, $key, $value); |
|
| 101 | } catch (NoSuchPropertyException $e) { |
|
| 102 | if ($this->isErrorEnabled) { |
|
| 103 | throw InvalidFeedException::invalidFeedProperty($key); |
|
| 104 | } |
|
| 105 | } |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| @@ 142-149 (lines=8) @@ | ||
| 139 | $this->accessor->setValue($item, $key, new DateTime($value)); |
|
| 140 | break; |
|
| 141 | ||
| 142 | default: |
|
| 143 | try { |
|
| 144 | $this->accessor->setValue($item, $key, $value); |
|
| 145 | } catch (NoSuchPropertyException $e) { |
|
| 146 | if ($this->isErrorEnabled) { |
|
| 147 | throw InvalidFeedException::invalidItemProperty($key); |
|
| 148 | } |
|
| 149 | } |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||