libpairtwo/src/Readers/Models/Pairtwo6.php

72 lines
1.2 KiB
PHP
Raw Normal View History

2019-01-16 18:03:07 +01:00
<?php
2019-05-27 12:58:53 +02:00
namespace JeroenED\Libpairtwo\Readers\Models;
2019-01-16 18:03:07 +01:00
2019-02-11 17:27:26 +01:00
use JeroenED\Libpairtwo\Tournament;
2019-05-27 13:06:35 +02:00
abstract class Pairtwo6
2019-01-16 18:03:07 +01:00
{
2019-03-20 17:33:09 +01:00
/** @var string */
2019-01-16 18:03:07 +01:00
private $Release;
2019-03-20 17:33:09 +01:00
/** @var tournament */
2019-01-16 18:03:07 +01:00
private $Tournament;
2019-03-20 17:33:09 +01:00
/** @var bool|DateTime|int|string[] */
2019-01-18 14:18:52 +01:00
private $BinaryData;
2019-01-16 18:03:07 +01:00
/**
2019-01-18 14:18:52 +01:00
* @return String
2019-01-16 18:03:07 +01:00
*/
2019-02-11 17:27:26 +01:00
public function getRelease(): string
2019-01-16 18:03:07 +01:00
{
return $this->Release;
}
/**
2019-01-18 14:18:52 +01:00
* @param String $Release
2019-01-16 18:03:07 +01:00
*/
2019-02-11 17:27:26 +01:00
public function setRelease(string $Release): void
2019-01-16 18:03:07 +01:00
{
$this->Release = $Release;
}
/**
2019-02-11 17:27:26 +01:00
* @return Tournament
2019-01-16 18:03:07 +01:00
*/
2019-02-11 17:27:26 +01:00
public function getTournament(): Tournament
2019-01-16 18:03:07 +01:00
{
return $this->Tournament;
}
/**
2019-02-11 17:27:26 +01:00
* @param Tournament $Tournament
2019-01-16 18:03:07 +01:00
*/
2019-01-18 14:17:43 +01:00
public function setTournament(Tournament $Tournament): void
2019-01-16 18:03:07 +01:00
{
$this->Tournament = $Tournament;
}
2019-01-18 14:17:43 +01:00
/**
* Returns binary data from the sws-file
*
* @param string
* @return string
*/
2019-02-11 17:27:26 +01:00
public function getBinaryData(string $key)
2019-01-18 14:17:43 +01:00
{
return $this->BinaryData[$key];
}
/**
* Sets binary data
*
* @param string
2019-02-11 17:27:26 +01:00
* @param mixed
2019-01-18 14:17:43 +01:00
*/
2019-02-11 17:27:26 +01:00
public function setBinaryData(string $key, $data): void
2019-01-18 14:17:43 +01:00
{
$this->BinaryData[$key] = $data;
}
2019-01-16 18:03:07 +01:00
}