src/Budkit/Protocol/Http/Response.php
public function getContent($packetId = null)
    {

        if (!isset($this->packetId)) {
            return $content = implode("/n", $this->content);
        }

        //Return the content with PacketId;
        return isset($this->content[$packetId]) ? $this->content[$packetId] : "";
    }
public function getContent($packetId = null)
    {

        if (!isset($this->packetId)) {
            return $content = implode("/n", $this->content);
        }

        //Return the content with PacketId;
        return isset($this->content[$packetId]) ? $this->content[$packetId] : "";
    }
public function getContent ( $ packetId = null ) { if ( ! isset ( $ this -> packetId ) ) { return $ content = implode ( "/n" , $ this -> content ) ; } //Return the content with PacketId; return isset ( $ this -> content [ $ packetId ] ) ? $ this -> content [ $ packetId ] : "" ; }
Gets content with specified Id, or all the content for buffering;

@param string $packetId

@return void
@author Livingstone Fultang
Gets content with specified Id or all the content for buffering ;