add

@param string ...$args

@return  static

@since  3.5.3
553079
public function add(string ...$args): self
    {
        $classes = $this->getClasses();

        $classes = array_values(array_unique(array_merge($classes, $args)));

        $this->html->setAttribute('class', implode(' ', $classes));

        return $this;
    }
507049
public function init(array $args = [])
    {
        $args += ['total' => 100, 'width' => 80];
        $this->_progress = 0;
        $this->_width = $args['width'];
        $this->_total = $args['total'];

        return $this;
    }
921797
public function merge(...$args): self
    {
        $args = array_map([Arr::class, 'toArray'], $args);

        return new static(array_merge($this->storage, ...$args));
    }
1033162
public function log(...$args)
    {
        foreach ($this->loggers as $callback) {
            call_user_func_array($callback, $args);
        }

        return $this;
    }
1243841
public function add(array $params) {
        foreach ($params as $key => $value) {
            $this->set($key, $value);
        }

        return $this;
    }
1202060
public static function create(...$arguments)
    {
        trigger_error(__METHOD__.'() has been deprecated and will be removed from v2.', E_USER_DEPRECATED);

        if (isset($arguments[0]) && is_string($arguments[0])) {
            return new static([], $arguments[0], $arguments[1] ?? []);
        }

        return new static(...$arguments);
    }
181523
public function orCreate($args)
    {
        $query = clone $this->_queryForWrite();

        if(!$query->count())
            $this->_schema->newInstance(func_get_args())->save();

        return $this;
    }
521073
public function removeArgument($arg)
    {
        if ($this->hasArgument($arg)) {
            $this->arguments->remove($arg);
        }
        return $this;
    }
508769
public function setArguments($arguments)
    {
        foreach ($arguments as $name => $argument) {
            $this->setArgument($name, $argument);
        }

        return $this;
    }
418141
public function on(...$args)
    {
        $this->createToken(
            'AND',
            $args,
            $this->joinTokens[$this->activeJoin]['on'],
            $this->onWrapper()
        );

        return $this;
    }
781856
public function add($type, $arguments = [])
    {
        /*
         | By default we will tag all assets to 'default' index
         */
        if ($this->where == 'default') {
            $this->where('default');
        }

        switch ($type) {
            case 'style':
                call_user_func_array([$this, $type], $arguments);
                break;
            case 'script':
                call_user_func_array([$this, $type], $arguments);
                break;
            case 'link':
                call_user_func_array([$this, $type], $arguments);
                break;
        }

        return $this;
    }
792783
public function addArguments(array $arguments)
    {
        foreach ($arguments as $param => $value) {
            $this->addArgument($param, $value);
        }

        return $this;
    }
439600
public function setKey($arg) {
        $this->setType(self::CLICK);
        $this->key = $arg;
        return $this;
    }
592027
protected function addMany(array $arguments = [])
    {
        foreach ($arguments as $name => $options) {
            $this->add($name, $options);
        }
    }
97690
public function addShould($args)
    {
        $this->boolQuery->addShould($args);
        $this->query = new \Elastica\Query($this->boolQuery);
    }
143624
protected function _add( $arg1, $arg2 ) {
		if ( is_numeric( $arg1 ) && is_numeric( $arg2 ) ) {
			return $arg1 + $arg2;
		} elseif ( is_numeric( $arg2 ) ) {
			return $arg1;
		} elseif ( is_numeric( $arg2 ) ) {
			return $arg2;
		}

		return '-';
	}
703071
public function addError(...$args) {
        $args = func_get_args();
        if(func_num_args()>2){
            foreach ($args as $error) {
                array_push($this->errors, $error);
            }
        } else {
            if(func_get_args()==1) {
                $this->errors[] = $args[0];
            } else {
                $this->errors[$args[0]] = $args[1];
            }
        }
    }