protected function getReceivingFrame(): Frame
    {
        $current = $this->getCurrentFrame();

        if ($current->isComplete()) {
            if ($current->isFinal()) {
                throw new PayloadException('Payload cannot receive data: it is already complete');
            } else {
                $this->frames[] = $current = $this->getFrame();
            }
        }

        return $current;
    }
protected function getReceivingFrame(): Frame
    {
        $current = $this->getCurrentFrame();

        if ($current->isComplete()) {
            if ($current->isFinal()) {
                throw new PayloadException('Payload cannot receive data: it is already complete');
            } else {
                $this->frames[] = $current = $this->getFrame();
            }
        }

        return $current;
    }
protected function getReceivingFrame ( ) : Frame { $ current = $ this -> getCurrentFrame ( ) ; if ( $ current -> isComplete ( ) ) { if ( $ current -> isFinal ( ) ) { throw new PayloadException ( 'Payload cannot receive data: it is already complete' ) ; } else { $ this -> frames [ ] = $ current = $ this -> getFrame ( ) ; } } return $ current ; }
Gets the frame into which data should be receieved

@throws PayloadException
@return Frame
Gets the frame into which data should be receieved