diff --git a/src/Filter.php b/src/Filter.php index 7a09052..c8f2b86 100644 --- a/src/Filter.php +++ b/src/Filter.php @@ -17,7 +17,7 @@ class Filter public ?string $columnName; - public bool $hide; + public bool $hide; /** @var array|Option[]|null $options */ @@ -27,14 +27,14 @@ public function __construct( ?string $columnName = null, ?string $function = null, ?int $collapse = null, - bool $hide = false + bool $hide = false ) { $this->options = $options; $this->prompt = $prompt; $this->collapse = $collapse; $this->function = $function; $this->columnName = $columnName; - $this->hide = $hide; + $this->hide = $hide; } @@ -58,9 +58,9 @@ public static function createFromArray(array $config, array $params = []): Filte if (array_key_exists('function', $config)) { $filter->setFunction($config['function']); } - if (array_key_exists('hide', $config)) { - $filter->setHide($config['hide']); - } + if (array_key_exists('hide', $config)) { + $filter->setHide($config['hide']); + } return $filter; } @@ -117,17 +117,17 @@ public function setFunction(?string $function): Filter } - public function getHide(): bool - { - return $this->hide; - } + public function getHide(): bool + { + return $this->hide; + } - public function setHide(bool $hide): Filter - { - $this->hide = $hide; - return $this; - } + public function setHide(bool $hide): Filter + { + $this->hide = $hide; + return $this; + } public function addOption(Option $option): Filter