19declare(strict_types=1);
40 return $a->getPosition() <=>
$b->getPosition();
47 return $type === Type::SELECT || $type === Type::SELECT_MULTI;
57 return !empty($this->options);
67 foreach ($this->options as $option) {
68 if ($option->optionID() === $option_id) {
77 foreach ($this->options as $key => $option) {
78 if ($option->optionID() !== $option_id) {
81 unset($this->options[$key]);
89 $this->options[] = $option;
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples