mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-06-02 09:20:26 +02:00
Jeroen De Meerleer
eae66f92f5
This change removes the separate getter and setter methods and is causing a lot of errors. To fix errors you'll now need to use the actual field name. Example: OLD: $reader->getTournament()->getRounds()[0]->getGames()[0]->getBlack()->getPlayer()->getName(); NEW: $reader->Tournament->Rounds[0]->Games[0]->Black->Player->Name;
37 lines
833 B
PHP
37 lines
833 B
PHP
<?php
|
|
/**
|
|
* Interface ReaderInterface
|
|
*
|
|
* Sets the methods a reader needs to implement
|
|
*
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
* @category Main
|
|
* @package Libpairtwo
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
*/
|
|
|
|
namespace JeroenED\Libpairtwo\Interfaces;
|
|
|
|
use JeroenED\Libpairtwo\Tournament;
|
|
|
|
/**
|
|
* Interface ReaderInterface
|
|
*
|
|
* Sets the methods a reader needs to implement
|
|
*
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
* @category Main
|
|
* @package Libpairtwo
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
*/
|
|
interface ReaderInterface
|
|
{
|
|
/**
|
|
* Reads out $filename
|
|
*
|
|
* @param $filename
|
|
* @return ReaderInterface
|
|
*/
|
|
public function read(string $filename): ReaderInterface;
|
|
}
|