Laravel\Lumen\Console\Kernel::getArtisan PHP Method

getArtisan() protected method

Get the Artisan application instance.
protected getArtisan ( ) : Illuminate\Console\Application
return Illuminate\Console\Application
    protected function getArtisan()
    {
        if (is_null($this->artisan)) {
            return $this->artisan = (new Artisan($this->app, $this->app->make('events'), $this->app->version()))->resolveCommands($this->getCommands());
        }
        return $this->artisan;
    }