for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Twitter\Object;
use Twitter\TwitterObject;
class TwitterDisconnect implements TwitterObject
{
/**
* @var string
*/
private $code;
private $streamName;
private $reason;
* Constructor.
public function __construct()
}
* @return string
public function getCode()
return $this->code;
public function getReason()
return $this->reason;
public function getStreamName()
return $this->streamName;
public function __toString()
return 'Disconnect [' . $this->streamName . ']';
* Static constructor.
*
* @param string $code
* @param string $reason
* @param string $streamName
* @return TwitterDisconnect
public static function create($code, $streamName, $reason)
$obj = new self();
$obj->code = $code;
$obj->reason = $reason;
$obj->streamName = $streamName;
return $obj;