2019-05-27 13:15:28 +02:00
|
|
|
<?php
|
2019-06-19 21:54:19 +02:00
|
|
|
/**
|
|
|
|
* 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>
|
|
|
|
*/
|
2019-05-27 13:15:28 +02:00
|
|
|
|
|
|
|
namespace JeroenED\Libpairtwo\Interfaces;
|
|
|
|
|
2019-06-01 16:39:58 +02:00
|
|
|
use JeroenED\Libpairtwo\Tournament;
|
|
|
|
|
2019-06-19 21:54:19 +02:00
|
|
|
/**
|
|
|
|
* 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>
|
|
|
|
*/
|
2019-05-27 13:15:28 +02:00
|
|
|
interface ReaderInterface
|
|
|
|
{
|
2019-06-19 21:54:19 +02:00
|
|
|
/**
|
|
|
|
* Reads out $filename
|
|
|
|
*
|
|
|
|
* @param $filename
|
|
|
|
* @return ReaderInterface
|
|
|
|
*/
|
|
|
|
public function read(string $filename): ReaderInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the tournament out of $filename
|
|
|
|
*
|
|
|
|
* @return Tournament
|
|
|
|
*/
|
2019-06-01 16:39:58 +02:00
|
|
|
public function getTournament(): Tournament;
|
2019-05-27 13:15:28 +02:00
|
|
|
}
|