public function getPath(): string
    {
        if (!$this->path) {
            if (\defined('PATH_APPLICATION')) {
                $this->path = PATH_APPLICATION;
            } else {
                $reflection = new \ReflectionClass($this);
                // 3 level up
                $this->path = \dirname($reflection->getFileName(), 3);
            }
        }
        return $this->path;
    }
public function getPath(): string
    {
        if (!$this->path) {
            if (\defined('PATH_APPLICATION')) {
                $this->path = PATH_APPLICATION;
            } else {
                $reflection = new \ReflectionClass($this);
                // 3 level up
                $this->path = \dirname($reflection->getFileName(), 3);
            }
        }
        return $this->path;
    }
public function getPath ( ) : string { if ( ! $ this -> path ) { if ( \ defined ( 'PATH_APPLICATION' ) ) { $ this -> path = PATH_APPLICATION ; } else { $ reflection = new \ ReflectionClass ( $ this ) ; // 3 level up $ this -> path = \ dirname ( $ reflection -> getFileName ( ) , 3 ) ; } } return $ this -> path ; }
Get path to Application

@return string
@throws \ReflectionException
Get path to Application