for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is automatically generated.
*/
namespace ButterAMQP\Framing\Method;
use ButterAMQP\Framing\Frame;
use ButterAMQP\Value;
/**
* Enable/disable flow from peer.
*
* @codeCoverageIgnore
class ChannelFlow extends Frame
{
* @var bool
private $active;
* @param int $channel
* @param bool $active
public function __construct($channel, $active)
$this->active = $active;
parent::__construct($channel);
}
* Start/stop content frames.
* @return bool
public function isActive()
return $this->active;
* @return string
public function encode()
$data = "\x00\x14\x00\x14".
Value\BooleanValue::encode($this->active);
return "\x01".pack('nN', $this->channel, strlen($data)).$data."\xCE";