Sokil\Mongo\Collection\Definition::getOption PHP Method

getOption() public method

public getOption ( $name )
    public function getOption($name)
    {
        if (property_exists($this, $name)) {
            return $this->{$name};
        }
        return isset($this->options[$name]) ? $this->options[$name] : null;
    }