original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get path to Application
  
  @return string
  @throws \ReflectionException
docstring_tokens: Get path to Application