wip: initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\BusProNet\ApiResponseParser;
|
||||
|
||||
use App\BusProNet\Model\Notification;
|
||||
|
||||
class NotificationResponseParser
|
||||
{
|
||||
public function parse(\SimpleXMLElement $xml): Notification
|
||||
{
|
||||
$recordXml = $xml->satz;
|
||||
|
||||
return new Notification((int) $recordXml->nr, (string) $recordXml->text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user