pushOption

@param string $name
@param mixed  $value

@return  $this

@since  3.5.1
960337
public function pushOption(string $name, $value)
    {
        $array = $this->options[$name] ?? [];

        $array[] = $value;

        $this->options[$name] = $array;

        return $this;
    }
75918
public function setOption($name, $value)
    {
        if (! in_array($name, $this->validOptions)) {
            throw new Error('Invalid option ' . $name . '. Valid options are : ' . join(', ', $this->validOptions));
        }
        // Check duplicate fields in header
        if ('header' == $name) {
            $cnt = array_count_values($value);
            $duplicates = array();
            foreach ($cnt as $f => $c) {
                if ($c > 1) {
                    $duplicates[$f] = $c;
                }
            }
            if (sizeof($duplicates) > 0) {
                $msg = 'Duplicate fields found in header : ' . join(', ', array_keys($duplicates));
                throw new Error($msg);
            }
        }
        $this->$name = $value;

        return $this;
    }
239890
public function setOption($name, $value)
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);

        $this->options[$name] = $value;

        return $this;
    }
662040
public function withArgument(string $name, $value) : self
    {
        $this->enqueueExchange->setArgument($name, $value);

        return $this;
    }
527350
final public function set($name, $value)
    {
        $method = 'set'.ucfirst($name);
        if(!method_exists($this, $method) ) {
            parent::set($name, $value);
        } else {
            $this->$method($value);
        }

        return $this;
    }
331761
private function _setOption($name, $value)
    {
        if (!is_string($name) || !array_key_exists($name, $this->_options)) {
            Zend_Cache::throwException("Incorrect option name : $name");
        }
        if ($name == 'lifetime' && empty($value)) {
            $value = null;
        }
        $this->_options[$name] = $value;
    }
185520
public function set($name, $value)
    {
        $name = '_' . (string)$name;
        if (property_exists($this, $name) && (!is_array($this->$name))) {
            $this->$name = $value;
        }
        return $this;
    }
853750
public function setOption( $name, $value )
	{
		$this->jsWriter->setSeriesOption( $this->getTitle(), $name, $value );

		return $this;
	}
1246779
public function set($name, $value) {
		\Asgard\Common\ArrayUtils::set($this->metas, $name, $value);
		return $this;
	}
1030617
public function filter($name, $value = null)
    {
        if (is_array($name)) {
            $this->option['filter'] = $name;
        } else {
            $this->option['filter'][$name] = $value;
        }

        return $this;
    }
1106576
public function add($name, $value)
    {
        if ($this->has($name)) {
            $this->updateAttribute($name, $value);
        }
        else {
            $this->makeAttribute($name, $value);
        }

        return $this;
    }
717555
public function setOption(string $name, string $value): void
    {
        $this->options[$name] = $value;
    }
367379
public function withHeader(string $name, $value): Builder
    {
        $this->headers[$name] = $value;

        return $this;
    }
995665
public function setOption($name, $value)
    {
        $method = 'set' . ucfirst($name);
        if (method_exists($this, $method) && $method !== __FUNCTION__) {
            return $this->$method($value);
        }

        $this->options[$name] = $value;
        return $this;
    }
49265
public function setProperty($name,$value) {
        if(property_exists($this,$name))
            $this->$name = $value;
        return $this;
    }
1269761
public function push( string $key, $value ) : self {
		$this->offsetSet( $key, $value );
		return $this;
	}
821789
public function option($name, $value) {
		$this->validateName($name);
		return $this->merge([$name => $value]);
	}