DataSift\Storyplayer\Cli\PlayStory_LogJsonSwitch::process PHP Method

process() public method

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
return Phix_Project\CliEngine\CliResult
    public function process(CliEngine $engine, $invokes = 1, $params = array(), $isDefaultParam = false)
    {
        // remember the setting
        if (!isset($engine->options->reports)) {
            $engine->options->reports = [];
        }
        $engine->options->reports['Json'] = $params[0];
        // tell the engine that it is done
        return new CliResult(CliResult::PROCESS_CONTINUE);
    }
PlayStory_LogJsonSwitch