*/ private $dataBytes; /** * Error correction bytes in the block. * * @var SplFixedArray */ private $errorCorrectionBytes; /** * Creates a new block pair. * * @param SplFixedArray $data * @param SplFixedArray $errorCorrection */ public function __construct(SplFixedArray $data, SplFixedArray $errorCorrection) { $this->dataBytes = $data; $this->errorCorrectionBytes = $errorCorrection; } /** * Gets the data bytes. * * @return SplFixedArray */ public function getDataBytes() : SplFixedArray { return $this->dataBytes; } /** * Gets the error correction bytes. * * @return SplFixedArray */ public function getErrorCorrectionBytes() : SplFixedArray { return $this->errorCorrectionBytes; } }