从队列头部添加
@param \string[] ...$value
@return bool
327211
public function setFirst(string ...$value) : bool
        {
                return $this->_redis->lpush($this->_key, $value) > 0 ? true : false;
        }
418786
public function add($value): bool
    {
        if (isset($this->hashMap[$value])) {
            return false;
        }

        $this->hashMap[$value] = 1;

        return true;
    }
191899
public function put($value)
    {

        if ($this->redis->lPush($this->channel, $value) !== false) {
            return true;
        }

        return false;
    }
701849
public function add ($key , $value) {
        if (!$this->beforeAdd()) {
            return false;
        }
        if (!$this->getConnection ()->getClient ()->zadd ($this->name , $value , $key)) {
            return false;
        }
        $this->_data = null;
        $this->_count = null;
        $this->afterAdd();
        return true;
    }
472605
public function includes ($value)
	{
		for ($i = 0; $i < $this->count(); $i++) {
			if ($value === $this->storage[$i]) {
				return true;
			}
		}

		return false;
	}
401413
public function addHeader($header, $value)
    {
        $name = strtolower($header);

        if(is_array($value))
        {
            foreach($value as $v)
                $this->headers[$name][] = trim($v);

            foreach(array_keys($this->headerLines) as $key)
                if(strtolower($key) == $name)
                    unset($this->headerLines[$key]);

            $this->headerLines[$header] = $this->headers[$name];
        }
        else
        {
            $this->headers[$name][] = trim($value);

            foreach(array_keys($this->headerLines) as $key)
                if(strtolower($key) == $name)
                    unset($this->headerLines[$key]);

            $this->headerLines[$header] = $this->headers[$name];
        }

        return $this;
    }
475597
public function append($value, $key = null): Arrayy
    {
        $this->checkTypeWrapper($value);

        return parent::append($value, $key);
    }
425455
public function multiple($value)
    {
        $value = $this->sanitise($value);

        switch (substr($value, -1)) {
            case '*':
            case '+':
                break;
            default:
                $value .= '+';
        }

        return $this->add($value);
    }
825724
public static function isValidIdArray($value): bool
    {
        if (false === \is_array($value) || 0 === \count($value)) {
            return false;
        }

        /** @var array $value */
        foreach ($value as $id) {
            if (false === self::isValidIdString($id)) {
                return false;
            }
        }

        return true;
    }
1159817
protected function castString($value)
    {
        $string = strtolower(trim($value));

        if (in_array($string, self::getBooleanStrings(true))) {
            return true;
        }

        if (in_array($string, self::getBooleanStrings(false))) {
            return false;
        }

        return $this->dontCast($value);
    }
851231
public function setTaxes($value)
    {
        if (is_array($value)) {
            $bag = new Bag();
            foreach ($value as $taxParameters) {
                $bag->add(new Tax($taxParameters));
            }
            $value = $bag;
        }

        return $this->setParameter('taxes', $value);
    }
1226614
public function setItems($value)
    {
        if (is_array($value)) {
            $bag = new Bag();
            foreach ($value as $itemParameters) {
                $bag->add(new Item($itemParameters));
            }
            $value = $bag;
        }
        return $this->setParameter('items', $value);
    }
1343390
public function add($name, $value = null)
    {
        if (empty($name)) {
            return $this;
        }

        $params = (!is_array($name) ? array($name => $value) : $name);

        $query = $this->query(true);

        foreach ($params as $key => $val) {
            if (empty($val)) {
                unset($query[$key]);
            } elseif (!empty($val)) {
                $query[$key] = $val;
            }
        }

        $query              = http_build_query($query);
        $this->url['query'] = $query;

        return $this;
    }
1251949
public function isSatisfiedBy(array $value): bool
    {
        return $this->one->isSatisfiedBy($value) && $this->other->isSatisfiedBy($value);
    }
142546
public static function isValid($value)
    {
        if (is_string($value)) {
            $value = [ $value ];
        }
        
        if (!is_array($value) || count($value) === 0) {
            return false;
        }

        foreach ($value as $ep) {
            if (!is_string($ep)) {
                return false;
            }
            $type = self::getType($ep);

            if ($type === null) {
                return false;
            }
        }
        return true;
    }
972504
protected function resolveValue($value)
    {
        if (is_array($value)) {
            $this->value = $value['module'];
        } else {
            $this->value = $value;
        }
        return true;
    }
1175100
public function add($key, $value)
    {
        if ($this->getReadOnly()) {
            throw new Exception('只读map，不允许执行添加操作', 100100603);
        }
        if (null === $key) {
            $this->_data[] = $value;
        } else {
            $this->_data[$key] = $value;
        }
    }