public function run()
    {
        if (PHP_SAPI === 'cli' && is_subclass_of($this, ConsoleAppInterface::class))
        {
            $this->execConsoleApp();
        }
        else if (is_subclass_of($this, WebAppInterface::class))
        {
            $this->execWebApp();
        }
        else
        {
            throw new \Exception("No interface was implemented");
        }
    }
public function run()
    {
        if (PHP_SAPI === 'cli' && is_subclass_of($this, ConsoleAppInterface::class))
        {
            $this->execConsoleApp();
        }
        else if (is_subclass_of($this, WebAppInterface::class))
        {
            $this->execWebApp();
        }
        else
        {
            throw new \Exception("No interface was implemented");
        }
    }
public function run ( ) { if ( PHP_SAPI === 'cli' && is_subclass_of ( $ this , ConsoleAppInterface :: class ) ) { $ this -> execConsoleApp ( ) ; } else if ( is_subclass_of ( $ this , WebAppInterface :: class ) ) { $ this -> execWebApp ( ) ; } else { throw new \ Exception ( "No interface was implemented" ) ; } }
Executes the application
Executes the application