src/Datastructure/Stackqueue/Queue.php
public function enqueue($item): bool {
        if (!$this->isValid()) return false;

        $this->queue[$this->head] = $item;
        $this->head++;
        return true;
    }
public function enqueue($item): bool {
        if (!$this->isValid()) return false;

        $this->queue[$this->head] = $item;
        $this->head++;
        return true;
    }
public function enqueue ( $ item ) : bool { if ( ! $ this -> isValid ( ) ) return false ; $ this -> queue [ $ this -> head ] = $ item ; $ this -> head ++ ; return true ; }
this methods adds an item to the queue to the last index

@param $item
@return bool
this methods adds an item to the queue to the last index