_usedProperties['pagination'] = true; $this->pagination = $value; return $this; } /** * @default '@KnpPaginator/Pagination/rel_links.html.twig' * @param ParamConfigurator|mixed $value * @return $this */ public function relLinks($value): static { $this->_usedProperties['relLinks'] = true; $this->relLinks = $value; return $this; } /** * @default '@KnpPaginator/Pagination/filtration.html.twig' * @param ParamConfigurator|mixed $value * @return $this */ public function filtration($value): static { $this->_usedProperties['filtration'] = true; $this->filtration = $value; return $this; } /** * @default '@KnpPaginator/Pagination/sortable_link.html.twig' * @param ParamConfigurator|mixed $value * @return $this */ public function sortable($value): static { $this->_usedProperties['sortable'] = true; $this->sortable = $value; return $this; } public function __construct(array $value = []) { if (array_key_exists('pagination', $value)) { $this->_usedProperties['pagination'] = true; $this->pagination = $value['pagination']; unset($value['pagination']); } if (array_key_exists('rel_links', $value)) { $this->_usedProperties['relLinks'] = true; $this->relLinks = $value['rel_links']; unset($value['rel_links']); } if (array_key_exists('filtration', $value)) { $this->_usedProperties['filtration'] = true; $this->filtration = $value['filtration']; unset($value['filtration']); } if (array_key_exists('sortable', $value)) { $this->_usedProperties['sortable'] = true; $this->sortable = $value['sortable']; unset($value['sortable']); } if ([] !== $value) { throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value))); } } public function toArray(): array { $output = []; if (isset($this->_usedProperties['pagination'])) { $output['pagination'] = $this->pagination; } if (isset($this->_usedProperties['relLinks'])) { $output['rel_links'] = $this->relLinks; } if (isset($this->_usedProperties['filtration'])) { $output['filtration'] = $this->filtration; } if (isset($this->_usedProperties['sortable'])) { $output['sortable'] = $this->sortable; } return $output; } }