| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | abstract class Base |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * Holds the options for this instance of the filter |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | protected $options = []; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Construct |
||
| 39 | * |
||
| 40 | * @param array $options |
||
| 41 | */ |
||
| 42 | 126 | public function __construct(array $options = []) |
|
| 43 | { |
||
| 44 | 126 | $this->options = $options; |
|
| 45 | } |
||
| 46 | |||
| 47 | 24 | public function getOptions() |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Apply the filter to the data |
||
| 54 | * |
||
| 55 | * @param array $result |
||
| 56 | * @param \GameQ\Server $server |
||
| 57 | * |
||
| 58 | * @return mixed |
||
| 59 | */ |
||
| 60 | abstract public function apply(array $result, Server $server); |
||
| 61 | } |
||
| 62 |