src/Rocketeer/Services/Display/QueueExplainer.php
public function display($info = null, $details = null, $origin = null, $time = null)
    {
        if (!$this->hasCommand()) {
            return;
        }

        // Build handle
        $comment = $this->getTree().$this->getFork();

        // Add details
        if ($info) {
            $comment .= ' <info>'.$info.'</info>';
        }
        if ($details) {
            $comment .= ' <comment>('.$details.')</comment>';
        }
        if ($origin) {
            $comment .= ' fired by <info>'.$origin.'</info>';
        }
        if ($time) {
            $comment .= ' [~'.$time.'s]';
        }

        $this->command->writeln($comment);
    }
public function display($info = null, $details = null, $origin = null, $time = null)
    {
        if (!$this->hasCommand()) {
            return;
        }

        // Build handle
        $comment = $this->getTree().$this->getFork();

        // Add details
        if ($info) {
            $comment .= ' <info>'.$info.'</info>';
        }
        if ($details) {
            $comment .= ' <comment>('.$details.')</comment>';
        }
        if ($origin) {
            $comment .= ' fired by <info>'.$origin.'</info>';
        }
        if ($time) {
            $comment .= ' [~'.$time.'s]';
        }

        $this->command->writeln($comment);
    }
public function display ( $ info = null , $ details = null , $ origin = null , $ time = null ) { if ( ! $ this -> hasCommand ( ) ) { return ; } // Build handle $ comment = $ this -> getTree ( ) . $ this -> getFork ( ) ; // Add details if ( $ info ) { $ comment .= ' <info>' . $ info . '</info>' ; } if ( $ details ) { $ comment .= ' <comment>(' . $ details . ')</comment>' ; } if ( $ origin ) { $ comment .= ' fired by <info>' . $ origin . '</info>' ; } if ( $ time ) { $ comment .= ' [~' . $ time . 's]' ; } $ this -> command -> writeln ( $ comment ) ; }
Display a status.

@param string|null $info
@param string|null $details
@param string|null $origin
@param float|null  $time
Display a status .