| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Frame |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | private $code = null; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $data = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Frame constructor. |
||
| 27 | * @param string $data |
||
| 28 | * @param int $code |
||
| 29 | */ |
||
| 30 | public function __construct(string $data, int $code = WSOpcode::TEXT) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return int |
||
| 38 | */ |
||
| 39 | public function code() : int |
||
| 40 | { |
||
| 41 | return $this->code; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function data() : string |
||
| 50 | } |
||
| 51 | } |
||
| 52 |