| 1 | <?php |
||
| 7 | class TwitterDisconnect implements TwitterObject |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $code; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $streamName; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $reason; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Constructor. |
||
| 26 | */ |
||
| 27 | 18 | public function __construct() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 9 | public function getCode() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 9 | public function getReason() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 9 | public function getStreamName() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 3 | public function __toString() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * Static constructor. |
||
| 65 | * |
||
| 66 | * @param string $code |
||
| 67 | * @param string $reason |
||
| 68 | * @param string $streamName |
||
| 69 | * |
||
| 70 | * @return TwitterDisconnect |
||
| 71 | */ |
||
| 72 | 18 | public static function create($code, $streamName, $reason) |
|
| 82 | } |
||
| 83 |