/** * Reads some text * * @param Beat $beat */ public function readText(Beat $beat) { $text = new Text(); $text->setValue($this->reader->readStringByteSizeOfInteger()); $beat->setText($text); }