public function getFramePayload()
    {
        if (!$this->isComplete()) {
            throw new FrameException('Cannot get payload: frame is not complete');
        }

        if (!$this->payload && $this->buffer) {
            $this->decodeFramePayloadFromBuffer();
        }

        return $this->payload;
    }
public function getFramePayload()
    {
        if (!$this->isComplete()) {
            throw new FrameException('Cannot get payload: frame is not complete');
        }

        if (!$this->payload && $this->buffer) {
            $this->decodeFramePayloadFromBuffer();
        }

        return $this->payload;
    }
public function getFramePayload ( ) { if ( ! $ this -> isComplete ( ) ) { throw new FrameException ( 'Cannot get payload: frame is not complete' ) ; } if ( ! $ this -> payload && $ this -> buffer ) { $ this -> decodeFramePayloadFromBuffer ( ) ; } return $ this -> payload ; }
Gets the contents of the frame payload
The frame must be complete to call this method.

@return string
@throws FrameException
Gets the contents of the frame payload The frame must be complete to call this method .