public function readSource(string $source) { if (!is_file($source)) { CLI::error('Not a valid source file: ' . $source); die; } $this->source = $source; return $this; }
/** * Displays a caught exception. * * @param \Exception $e */ protected function showError(\Exception $e) { CLI::error($e->getMessage()); CLI::write($e->getFile() . ' - ' . $e->getLine(), 'white'); }