Pushes one value onto the top of the queue.

@param mixed $value

@return \PlanB\DS\Queue\QueueInterface
323744
public function push($value): QueueInterface
    {

        $this->resolver->value(function ($value): void {
            $this->items->push($value);
        }, $value);

        return $this;
    }
905483
public function setMax($value)
    {
        $this->max = $value === null ? null : (int) $value;

        return $this;
    }
1307282
public function union($value)
    {
        // force data conversion to array
        $value = Collection::cast($value, $this->type)->getInternalValue();

        $this->setInternalValue($this->getInternalValue() + $value);

        return $this;
    }
1218673
public function push($name, $value)
    {
        $previousValue = $this->get($name, []);

        $previousValue[] = $value;

        return $this->create($name, $previousValue);
    }
1129017
public function setCoreTopmenuShowDescriptions($value)
    {
        $this->setFieldName('topmenu_show_descriptions');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
289278
public function setValue($value) {
		Argument::i()->test(1, 'scalar', 'array', 'null');
		
		if(!is_array($value)) {
			$value = func_get_args();
		}
		
		$this->value = $value;
			
		return $this;
	}
134887
public function setValue( $value )
    {
        if ( $value instanceof Traversable )
        {
            $value = ArrayUtils::iteratorToArray( $value );
        }

        return parent::setValue( (array) $value );
    }
237594
public function setHeight($value)
	{
		$this->height = intval($value);
		$this->bottom = null;
		return $this;
	}
931911
public function push($value, int $repeat = null): self
    {
        if ($repeat !== null && $repeat <= 0) {
            throw new InvalidArgumentException(sprintf(static::MSG_NEGATIVE_ARGUMENT_NOT_ALLOWED, 2, 1));
        }

        for ($i = 0; $i < ($repeat ?? 1); $i++) {
            $this->values[] = $value;
        }

        return $this;
    }
1110628
public function update($value)
        {
            $this->validate($value);
            if ($this->chaining) {
                $this->chain = $value;
            } else {
                $this->current = $value;
            }
            return $this;
        }
872258
public function push($data, $value)
    {
        $index = count($this->map);
        $this->map[$index] = $data;
        for ($i = 0; $i < $this->baseCount * $value; $i++) {
            $this->randomArr[] = $index;
        }
    }
996051
public function setBottom($value)
	{
		$this->bottom = intval($value);
		$this->height = null;
		return $this;
	}
646722
public function push($value = null)
    {
        if ($this->depth >= $this->maxDepth) {
            throw new MaxDepthExceededException();
        }

        if (is_object($value)) {
            $oid = spl_object_hash($value);
            if (isset($this->objectIds[$oid])) {
                throw new InfiniteRecursionException();
            }

            $this->objectIds[$oid] = true;
        } else {
            $this->objectIds[] = true;
        }

        $this->depth++;
    }
1171712
public function push($value, int $priority)
    {
        $this->checkCapacity();

        // Add new leaf, then sift up to maintain heap,
        $this->heap[] = new PriorityNode($value, $priority, $this->stamp++);
        $this->siftUp(count($this->heap) - 1);
    }
741386
private function push(string $key, $value): self
    {
        if (!isset($this->query[$key])) {
            $this->query[$key] = [];
        }

        $this->query[$key] = array_merge($this->query[$key], (array) $value);

        return $this;
    }
1041049
public function insert($value, $priority)
    {
        if (! is_int($priority)) {
            throw new Exception\InvalidArgumentException('The priority must be an integer');
        }
        $this->values[$priority][] = $value;
        if (! isset($this->priorities[$priority])) {
            $this->priorities[$priority] = $priority;
            $this->maxPriority           = max($priority, $this->maxPriority);
        }
        ++$this->count;
    }
1062257
public function value($value)
    {
        // Set the value using parent, so that if there is already one specified
        // from populate or POST
        parent::value($value);

        // Set the value of the subfields
        $this->date->value($value);
        $this->time->value($value);

        // Chainable
        return $this;
    }