/** * Object constructor. Sets properties. * * @param array $arg_options Options to override defaults */ public function __construct(array $arg_options = array()) { $default_options = array('runner' => null, 'colorize' => 'auto', 'format' => 'json', 'debug' => false, 'yes' => false); self::$options = $options = array_merge($default_options, $arg_options); $this->setRunner($options['runner']); $this->setLogger($options); $this->setOutputter($options['format']); }