diff --git a/src/Pairing.php b/src/Pairing.php index 546f0c8..6eca5b0 100644 --- a/src/Pairing.php +++ b/src/Pairing.php @@ -70,4 +70,38 @@ class Pairing * @var int */ public $Round; + + /** + * Binary data that was read out of the pairing file + * + * @var bool|DateTime|int|string[] + */ + private $BinaryData = []; + + /** + * Magic method to read out several fields. If field was not found it is being searched in the binary data fields + * + * @param string $key + * + * @return bool|DateTime|int|string|null + */ + public function __get(string $key) + { + if (isset($this->BinaryData[ $key ])) { + return $this->BinaryData[ $key ]; + } + + return null; + } + + /** + * Sets binary data that is read out the pairing file but is not needed immediately + * + * @param string $key + * @param bool|int|DateTime|string $value + */ + public function __set(string $key, $value): void + { + $this->BinaryData[ $key ] = $value; + } } diff --git a/src/Round.php b/src/Round.php index 982c047..e7bac42 100644 --- a/src/Round.php +++ b/src/Round.php @@ -56,6 +56,13 @@ class Round */ public $RoundNo; + /** + * Binary data that was read out of the pairing file + * + * @var bool|DateTime|int|string[] + */ + private $BinaryData = []; + /** * Magic method to read out several fields. If field was not found it is being searched in the binary data fields *