libpairtwo/src/Interfaces/ReaderInterface.php
Jeroen De Meerleer eae66f92f5
Removed getter and setter methods
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;
2019-11-15 17:17:09 +01:00

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;
}