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