Curl\Options::__call PHP Method

__call() public method

Intelligent setters
public __call ( string $name, array $args ) : self
$name string Function name
$args array Arguments
return self
    public function __call($name, $args)
    {
        if (substr($name, 0, 3) == 'set' && isset($args[0])) {
            $const = strtoupper(substr($name, 3));
            $numericValue = ConstantsTable::findNumericValue($const);
            $this->set($numericValue, $args[0]);
        }
        return $this;
    }