Added binaryData

This commit is contained in:
Jeroen De Meerleer 2019-07-16 15:58:53 +02:00
parent d370aad190
commit 38e67a4261
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 27 additions and 0 deletions

View File

@ -102,6 +102,9 @@ class Tournament
/** @var string */
private $PriorityId = 'Nation';
/** @var bool|DateTime|int|string[] */
private $binaryData = [];
/**
* Gets a player by its ID
*
@ -1313,4 +1316,28 @@ class Tournament
$this->PriorityId = $PriorityId;
return $this;
}
/**
* Returns binary data that was read out the pairing file but was not needed immediately
*
* @param string $Key
* @return bool|DateTime|int|string
*/
public function getBinaryData(string $Key)
{
return $this->BinaryData[$Key];
}
/**
* Sets binary data that is read out the pairing file but is not needed immediately
*
* @param string $Key
* @param bool|int|DateTime|string $Value
* @return Pairtwo6
*/
public function setBinaryData(string $Key, $Value): Tournament
{
$this->BinaryData[$Key] = $Value;
return $this;
}
}