src/Entity/ReconciliationIdentifier.php 1 location
|
@@ 42-46 (lines=5) @@
|
| 39 |
|
$this->type = (string)$xml->Type; |
| 40 |
|
|
| 41 |
|
$this->date = \DateTimeImmutable::createFromFormat(DATE_RFC3339, (string)$xml->Date); |
| 42 |
|
if ($this->date === false) { |
| 43 |
|
$exception = new XmlException('The date format is wrong'); |
| 44 |
|
$exception->setXmlElement($xml); |
| 45 |
|
throw $exception; |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
/** |
src/Entity/Transaction.php 1 location
|
@@ 227-231 (lines=5) @@
|
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
$this->updatedDate = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', (string)$xml->UpdatedDate); |
| 227 |
|
if ($this->updatedDate === false) { |
| 228 |
|
$exception = new XmlException('The updated date format is wrong'); |
| 229 |
|
$exception->setXmlElement($xml); |
| 230 |
|
throw $exception; |
| 231 |
|
} |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
/** |