public function setQueue($queue, $value)
    {
        // Ensure the value is an array
        if (is_array($value) === false) {
            $value = [$value];
        }

        $this->queues[$queue] = array_merge(
            $this->getQueue($queue), $value
        );
    }
public function setQueue($queue, $value)
    {
        // Ensure the value is an array
        if (is_array($value) === false) {
            $value = [$value];
        }

        $this->queues[$queue] = array_merge(
            $this->getQueue($queue), $value
        );
    }
public function setQueue ( $ queue , $ value ) { // Ensure the value is an array if ( is_array ( $ value ) === false ) { $ value = [ $ value ] ; } $ this -> queues [ $ queue ] = array_merge ( $ this -> getQueue ( $ queue ) , $ value ) ; }
Set an item to be queued.

@param string       $queue
@param string|array $value
Set an item to be queued .