libpairtwo/src/Models/Sws.php

67 lines
1.1 KiB
PHP
Raw Normal View History

2019-01-16 18:03:07 +01:00
<?php
namespace JeroenED\Libpairtwo\Models;
2019-02-11 17:27:26 +01:00
use JeroenED\Libpairtwo\Tournament;
2019-01-16 18:03:07 +01:00
class Sws
{
private $Release;
private $Tournament;
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
}