From f3de844a4c17581a56fa61ecb4e3aab5047bcb55 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Tue, 16 Jul 2019 16:07:20 +0200 Subject: [PATCH] Reading out some more fields --- src/Readers/Swar4.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Readers/Swar4.php b/src/Readers/Swar4.php index bc9a3d9..1d95b58 100644 --- a/src/Readers/Swar4.php +++ b/src/Readers/Swar4.php @@ -44,6 +44,23 @@ class Swar4 implements ReaderInterface $this->setTournament(new Tournament()); + $this->setBinaryData('Guid', $this->readData('String', $swshandle)); + $this->setBinaryData('MacAddress', $this->readData('String', $swshandle)); + $this->setBinaryData('[Tournoi]', $this->readData('String', $swshandle)); + $this->getTournament()->setName($this->readData('String', $swshandle)); + $this->getTournament()->setOrganiser($this->readData('String', $swshandle)); + $this->getTournament()->setOrganiserClub($this->readData('String', $swshandle)); + $this->getTournament()->setOrganiserPlace($this->readData('String', $swshandle)); + + // @todo: Make arbiter an array to set multiple arbiters + $this->getTournament()->setArbiter($this->readData('String', $swshandle)); + $this->getTournament()->setBinaryData('Arbiter2', $this->readData('String', $swshandle)); + + $this->getTournament()->setStartDate($this->readData('Date', $swshandle)); + $this->getTournament()->setEndDate($this->readData('Date', $swshandle)); + + // Tempo string is not variable and dependant on kind of tournament + $this->getTournament()->setBinaryData('TempoIndex', $this->readData('Int', $swshandle)); fclose($swshandle);