Sets the booking transitioner for this instance.

@since [*next-version*]

@param TransitionerInterface|null $transitioner The transitioner or null.

@throws InvalidArgumentException If the argument is not valid.
976956
protected function _setTransitioner($transitioner)
    {
        if ($transitioner !== null && !($transitioner instanceof TransitionerInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a valid booking transitioner'),
                null,
                null,
                $transitioner
            );
        }

        $this->transitioner = $transitioner;
    }
1177433
protected function _setTranslator($translator)
    {
        if (!(is_null($translator) || $translator instanceof StringTranslatorInterface)) {
            throw new InvalidArgumentException('Invalid translator');
        }

        $this->translator = $translator;

        return $this;
    }
925964
public function setDivider($divider = '/'): Breadcrumbs
    {
        if (!is_string($divider) && !is_null($divider)) {
            throw new InvalidArgumentException('Breadcrumbs::setDivider() only accepts strings or NULL');
        }
        $this->setOption('divider', $divider);

        return $this;
    }
840529
public function setValidator(ValidatorExtensionInterface $validator)
    {
        $this->validator = $validator;
        $this->validator->setFormHandler($this);
    }
972688
public function addAccessor($accessor)
    {
        if (in_array($accessor, $this->accessorDefaults['getter'])) {
            $this->addGetter($accessor);
        } elseif (in_array($accessor, $this->accessorDefaults['setter'])) {
            $this->addSetter($accessor);
        } else {
            throw new \InvalidArgumentException(sprintf('Unexpected property accessor "%s" available accessors are [get,is,bind,set]', $accessor));
        }

    }
727513
public function setOptions($options)
    {
        if (!is_int($options) && !is_null($options)) {
            throw new InvalidArgumentException('Invalid options.');
        }

        $this->options = $options ?: 0;

        $this->handleChangedParameters();

        return $this;
    }
998886
protected function _setTransition($transition)
    {
        $this->transition = ($transition === null)
            ? null
            : $this->_normalizeStringable($transition);
    }
1339930
public function setTransformer(\chilimatic\lib\interfaces\IFlyWeightTransformer $transformer)
    {
        $this->transformer = $transformer;

        return $this;
    }
266895
public function setParamTransformer(\chilimatic\lib\interfaces\IFlyWeightTransformer $paramTransformer)
    {
        $this->paramTransformer = $paramTransformer;

        return $this;
    }
635846
public function setTransformer($transformer = null)
    {
        if (!$this->resource) {
            throw new MissingResourceException('Resource must be specified before setting a transformer');
        }
        $this->resource->setTransformer($transformer);

        return $this;
    }
84310
public function setTransition($openTransition, $closeTransition = null)
    {
        $this->options['openTransition'] = $openTransition;

        if ($closeTransition) {
            $this->options['closeTransition'] = $closeTransition;
        }

        return $this;
    }
594805
public function setDisplayer(DisplayerInterface $displayer)
    {
        $this->displayer = $displayer;

        if ( ! isset($this->exceptionHandler)) return;

        $this->exceptionHandler->setDisplayer($displayer);
    }
937956
public function setOperator($operator)
    {
        if (!$operator) {
            $operator = '==';
        }

        if (!\in_array($operator, ['>', '<', '>=', '<=', '==', '!='])) {
            throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator));
        }

        $this->operator = $operator;
    }
991093
public function setDivider($divider)
    {
        if (!is_string($divider) && !is_null($divider)) {
            throw new \InvalidArgumentException(
                'Breadcrumbs::setDivider() only accepts strings or NULL, but '
                . (is_object($divider) ? get_class($divider) : gettype($divider))
                . ' given: ' . print_r($divider, true)
            );
        }

        $this->divider = $divider;

        return $this;
    }
1156676
public function addInstaller(InstallerInterface $installer)
    {
        $installerClass = get_class($installer);

        if (!isset($this->installers[$installerClass])) {
            if ($installer instanceof OrderedInstallerInterface && $installer instanceof DependentInstallerInterface) {
                throw new \InvalidArgumentException(sprintf('Class "%s" can\'t implement "%s" and "%s" at the same time.',
                    $installerClass,
                    'OrderedInstallerInterface',
                    'DependentInstallerInterface'));
            } elseif ($installer instanceof OrderedInstallerInterface) {
                $this->orderInstallersByNumber = true;
            } elseif ($installer instanceof DependentInstallerInterface) {
                $this->orderInstallersByDependencies = true;
                foreach ($installer->getDependencies() as $class) {
                    $this->addInstaller(new $class);
                }
            }

            $this->installers[$installerClass] = $installer;
        }
    }
838424
public function setIsImportant($isImportant)
    {
        if (is_bool($isImportant)) {
            $this->isImportant = $isImportant;
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($isImportant). "' for argument 'isImportant' given."
            );
        }
    }
331275
public function setRouter($Router)
    {
        if (! is_object($Router) || ! $Router instanceof Router) {
            throw new \InvalidArgumentException(
                'The Router Interface must be a valid Router Object'
            );
        }
        $this->Router = $Router;

        return true;
    }