Core/Router/Router.php
public function getInstance(): Router
    {
        if (! isset(self::$instance)) {
            self::$instance = new self();
        }
        
        return self::$instance;
    }
public function getInstance(): Router
    {
        if (! isset(self::$instance)) {
            self::$instance = new self();
        }
        
        return self::$instance;
    }
public function getInstance ( ) : Router { if ( ! isset ( self :: $ instance ) ) { self :: $ instance = new self ( ) ; } return self :: $ instance ; }
Singleton instance factory

@return Router
Singleton instance factory