DataSift\Storyplayer\Cli\Feature_ColorSwitch::process PHP Метод

process() публичный Метод

public process ( Phix_Project\CliEngine $engine, integer $invokes = 1, array $params = [], boolean $isDefaultParam = false ) : Phix_Project\CliEngine\CliResult
$engine Phix_Project\CliEngine
$invokes integer
$params array
$isDefaultParam boolean
Результат Phix_Project\CliEngine\CliResult
    public function process(CliEngine $engine, $invokes = 1, $params = array(), $isDefaultParam = false)
    {
        // remember the setting
        $engine->options->color = self::$supportedValues[strtolower($params[0])];
        // tell the engine that it is done
        return new CliResult(CliResult::PROCESS_CONTINUE);
    }
Feature_ColorSwitch