| @@ 52-54 (lines=3) @@ | ||
| 49 | } |
|
| 50 | ||
| 51 | $audio_channel = isset($params['audio_channel']) ? $params['audio_channel'] : ''; |
|
| 52 | if (!in_array($audio_channel, array('left', 'right', 'split', ''))) { |
|
| 53 | throw new InvalidEnumTypeException(); |
|
| 54 | } |
|
| 55 | ||
| 56 | $result = $this->client->post('bundles', $params); |
|
| 57 | $this->detail = $this->client->detail; |
|
| @@ 27-29 (lines=3) @@ | ||
| 24 | $params['label'] = isset($options['label']) ? $options['label'] : ''; |
|
| 25 | $params['source'] = isset($options['source']) ? $options['source'] : ''; |
|
| 26 | $params['audio_channel'] = isset($options['audio_channel']) ? $options['audio_channel'] : ''; |
|
| 27 | if (!in_array($params['audio_channel'], array('left', 'right', 'split', ''))) { |
|
| 28 | throw new InvalidEnumTypeException(); |
|
| 29 | } |
|
| 30 | ||
| 31 | $resourceURI = $this->getSubresourceURI($options['id']); |
|
| 32 | $result = $this->client->post($resourceURI, $params); |
|