Updated binary data to return null

This commit is contained in:
Jeroen De Meerleer 2019-09-25 14:38:44 +02:00
parent 7007f00ac8
commit 9c7306ad25
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 11 additions and 5 deletions

View File

@ -464,12 +464,15 @@ class Player
* Returns binary data that was read out the pairtwo file but was not needed immediately * Returns binary data that was read out the pairtwo file but was not needed immediately
* *
* @param string $Key * @param string $Key
* @return bool|DateTime|int|string * @return bool|DateTime|int|string|null
*/ */
public function getBinaryData(string $Key) public function getBinaryData(string $Key)
{ {
if (isset($this->BinaryData[$Key])) {
return $this->BinaryData[$Key]; return $this->BinaryData[$Key];
} }
return null;
}
/** /**
* Sets binary data that is read out the pairtwo file but is not needed immediately * Sets binary data that is read out the pairtwo file but is not needed immediately

View File

@ -103,12 +103,15 @@ class Pairtwo6 implements ReaderInterface
* Returns binary data that was read out the pairtwo file but was not needed immediately * Returns binary data that was read out the pairtwo file but was not needed immediately
* *
* @param string $Key * @param string $Key
* @return bool|DateTime|int|string * @return bool|DateTime|int|string|null
*/ */
public function getBinaryData(string $Key) public function getBinaryData(string $Key)
{ {
if (isset($this->BinaryData[$Key])) {
return $this->BinaryData[$Key]; return $this->BinaryData[$Key];
} }
return null;
}
/** /**