protected function getCurrentFrame()
    {
        if (empty($this->frames)) {
            array_push($this->frames, $this->getFrame());
        }
        return end($this->frames);
    }
protected function getCurrentFrame()
    {
        if (empty($this->frames)) {
            array_push($this->frames, $this->getFrame());
        }
        return end($this->frames);
    }
protected function getCurrentFrame ( ) { if ( empty ( $ this -> frames ) ) { array_push ( $ this -> frames , $ this -> getFrame ( ) ) ; } return end ( $ this -> frames ) ; }
Gets the current frame for the payload

@return mixed
Gets the current frame for the payload