| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class LiveStream extends BaseApi |
||
| 10 | { |
||
| 11 | public function get($liveStreamId) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function create(array $properties = array()) |
||
| 24 | { |
||
| 25 | $response = $this->browser->post( |
||
| 26 | '/live-streams', |
||
| 27 | array(), |
||
| 28 | json_encode( |
||
| 29 | $properties |
||
| 30 | ) |
||
| 31 | ); |
||
| 32 | if (!$response->isSuccessful()) { |
||
| 33 | $this->registerLastError($response); |
||
| 34 | |||
| 35 | return null; |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this->unmarshal($response); |
||
| 39 | } |
||
| 40 | |||
| 41 | protected function cast(array $data) |
||
| 51 | } |
||
| 52 | |||
| 54 |