Exemplo n.º 1
0
 private function writeInformations(Song $song)
 {
     $this->writeStringByteSizeOfInteger($song->getName());
     $this->writeStringByteSizeOfInteger("");
     $this->writeStringByteSizeOfInteger($song->getArtist());
     $this->writeStringByteSizeOfInteger($song->getAlbum());
     $this->writeStringByteSizeOfInteger($song->getAuthor());
     $this->writeStringByteSizeOfInteger($song->getCopyright());
     $this->writeStringByteSizeOfInteger($song->getWriter());
     $this->writeStringByteSizeOfInteger("");
     $comments = $this->toCommentLines($song->getComments());
     $this->writeInt(count($comments));
     for ($i = 0; $i < count($comments); $i++) {
         $this->writeStringByteSizeOfInteger($comments[$i]);
     }
 }