| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | abstract class Filter implements FilterInterface, FilterStreamingInterface |
||
| 18 | { |
||
| 19 | private $priority = 2; |
||
| 20 | |||
| 21 | protected $filter = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Filter constructor. |
||
| 25 | * @param Export $media |
||
| 26 | */ |
||
| 27 | public function __construct(Export $media) |
||
| 28 | { |
||
| 29 | $this->setFilter($media); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Applies the filter on the the Audio media given an format. |
||
| 34 | * |
||
| 35 | * @return array An array of arguments |
||
| 36 | */ |
||
| 37 | public function apply(): array |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Returns the priority of the filter. |
||
| 44 | * |
||
| 45 | * @return integer |
||
| 46 | */ |
||
| 47 | public function getPriority(): int |
||
| 48 | { |
||
| 49 | return $this->priority; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getFilter(): array |
||
| 58 | } |
||
| 59 | } |