put value into the queue

@param $value
@return bool
191899
public function put($value)
    {

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

        return false;
    }
863642
public function insert(string $value): bool
    {
        return $this->handle->pfAdd($this->name, [$value]);
    }
123076
protected function insertValue($value): void
    {
        // Grab the top item from the stack that we're currently parsing.
        $currentItem = array_pop($this->stack);

        // Examine the current item, and then:
        //   - if it's an object, associate the newly-parsed value with the most recent key
        //   - if it's an array, push the newly-parsed value to the array
        if ('object' === $currentItem['type']) {
            $currentItem['value'][array_pop($this->keys)] = $value;
        } else {
            $currentItem['value'][] = $value;
        }

        // Replace the current item on the stack.
        $this->stack[] = $currentItem;
    }
418786
public function add($value): bool
    {
        if (isset($this->hashMap[$value])) {
            return false;
        }

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

        return true;
    }
772197
public function setValue($value) {
        switch ($this->type) {
            case self::TYPE_BOOLEAN:
                $this->value = (bool) $value;
                break;
            case self::TYPE_STRING:
                $this->value = (string) $value;
                break;
        }
        return $this;
    }
1146513
public function setStatus(int $value) : Job
    {

        if ($this->data['status'] !== $value) {
            $this->data['status'] = $value;
            $this->setModified('status');
        }

        return $this;
    }
738121
public function setValue(?string $value) : Setting
    {

        if ($this->data['value'] !== $value) {
            $this->data['value'] = $value;
            $this->setModified('value');
        }

        return $this;
    }
151784
public function lock( $value = true )
	{
		$this->lock = $value;

		if ( $this->lock )
		{
			$this->useWritePdo();
		}

		return $this;
	}
1193061
public function next($value): self
    {
        $this->ensureIsNotLocked();

        $this->value = $value;
        $this->locked = true;

        return $this;
    }
742200
public function add($value): bool
    {
        if ($this->has($value)) {
            return false;
        }

        $this->set($value);

        return true;
    }
633900
public function maybeInSet($value)
    {
        foreach ($this->positions($value) as $position) {
            if (!$this->getBitAtPosition($position)) {
                return false;
            }
        }
        return true;
    }
1104222
public function push($value)
    {
        $this->offsetSet($this->count(), $value);
        $this->seek($this->count() - 1);
    }
670451
public function _reject($value) {
        if ($this->state === self::PENDING) {
            $this->value = $value;
            for ($i = 0; $i < count($this->failure_pending); $i++) {
                $callback = $this->failure_pending[$i];
                $callback($value);
            }
            $this->state = self::REJECTED;
        }
    }
61465
public function insert($value, $priority)
    {
        if (is_int($priority)) {
            $priority = [$priority, $this->counter--];
        }
        parent::insert($value, $priority);
    }
720698
def push(self, value):
        
        if self.closed and not self.allow_add_after_close:
            Log.error("Do not push to closed queue")

        with self.lock:
            self._wait_for_queue_space()
            if not self.closed:
                self.queue.appendleft(value)
        return self
988488
public function offsetPush($value)
    {

        $keys = $this->storage->keys();

        $nextId = $this->idGenerator->until(function ($id) use ($keys) {
            return !$keys->contains($id);
        })->generate($this->passSalt ? $value : null);

        $this->storage->offsetSet($nextId, $value);

        return $nextId;
    }
329707
protected function submitted($value)
    {
        if (is_string($value)) {
            $value = trim($value);
        }
        if (empty($value) && !is_numeric($value)) {
            return false;
        }

        return true;
    }