src/DS/Queue/AbstractQueue.php
public function push($value): QueueInterface
    {

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

        return $this;
    }
public function push($value): QueueInterface
    {

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

        return $this;
    }
public function push ( $ value ) : QueueInterface { $ this -> resolver -> value ( function ( $ value ) : void { $ this -> items -> push ( $ value ) ; } , $ value ) ; return $ this ; }
Pushes one value onto the top of the queue.

@param mixed $value

@return \PlanB\DS\Queue\QueueInterface
Pushes one value onto the top of the queue .