| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | trait Representations |
||
| 19 | { |
||
| 20 | /** @var array */ |
||
| 21 | protected $representations = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param Representation $rep |
||
| 25 | * @return $this |
||
| 26 | * @throws Exception |
||
| 27 | */ |
||
| 28 | public function addRepresentation(Representation $rep) |
||
| 29 | { |
||
| 30 | if (!$this->format) { |
||
| 31 | throw new Exception('Format has not been set'); |
||
| 32 | } |
||
| 33 | |||
| 34 | $this->representations[] = $rep; |
||
| 35 | return $this; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function getRepresentations(): array |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param array $side_values |
||
| 48 | * @param array|null $k_bitrate_values |
||
| 49 | * @return $this |
||
| 50 | * @throws Exception |
||
| 51 | */ |
||
| 52 | public function autoGenerateRepresentations(array $side_values = null, array $k_bitrate_values = null) |
||
| 62 | } |
||
| 63 | } |