src/Mandango/Mondator/ClassExtension.php
public function setOption($name, $value)
    {
        if (!$this->hasOption($name)) {
            throw new \InvalidArgumentException(sprintf('The option "%s" does not exists.', $name));
        }

        $this->options[$name] = $value;
    }
public function setOption($name, $value)
    {
        if (!$this->hasOption($name)) {
            throw new \InvalidArgumentException(sprintf('The option "%s" does not exists.', $name));
        }

        $this->options[$name] = $value;
    }
Set an option.

@param string $name  The name.
@param mixed  $value The value.

@throws \InvalidArgumentException If the option does not exists.

@api