public function encode()
    {
        return $this->header->encode() . $this->getContent() . \str_repeat("\0", $this->header->getPaddingLength());
    }
public function encode()
    {
        return $this->header->encode() . $this->getContent() . \str_repeat("\0", $this->header->getPaddingLength());
    }
public function encode ( ) { return $ this -> header -> encode ( ) . $ this -> getContent ( ) . \ str_repeat ( "\0" , $ this -> header -> getPaddingLength ( ) ) ; }
Compiles record into struct to send.

@return string
Compiles record into struct to send .