Skip to content

Commit

Permalink
tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
stepapo committed May 10, 2021
1 parent ecb56bc commit 7a740ed
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Filter

public ?string $columnName;

public bool $hide;
public bool $hide;


/** @var array|Option[]|null $options */
Expand All @@ -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;
}


Expand All @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a740ed

Please sign in to comment.