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