PhpAmqpLib/Channel/AbstractChannel.php
protected function prepare_method_frame($method_sig, $args = '', $pkt = null)
    {
        return $this->connection->prepare_channel_method_frame($this->channel_id, $method_sig, $args, $pkt);
    }
protected function prepare_method_frame($method_sig, $args = '', $pkt = null)
    {
        return $this->connection->prepare_channel_method_frame($this->channel_id, $method_sig, $args, $pkt);
    }
protected function prepare_method_frame ( $ method_sig , $ args = '' , $ pkt = null ) { return $ this -> connection -> prepare_channel_method_frame ( $ this -> channel_id , $ method_sig , $ args , $ pkt ) ; }
This is here for performance reasons to batch calls to fwrite from basic.publish

@param array $method_sig
@param \PhpAmqpLib\Wire\AMQPWriter|string $args
@param \PhpAmqpLib\Wire\AMQPWriter $pkt
@return \PhpAmqpLib\Wire\AMQPWriter
This is here for performance reasons to batch calls to fwrite from basic . publish