public function getRootPath()
    {
        if (null === $this->rootPath) {
            $this->rootPath = dirname((new \ReflectionClass($this))->getFileName());
        }

        return $this->rootPath;
    }
public function getRootPath()
    {
        if (null === $this->rootPath) {
            $this->rootPath = dirname((new \ReflectionClass($this))->getFileName());
        }

        return $this->rootPath;
    }
public function getRootPath ( ) { if ( null === $ this -> rootPath ) { $ this -> rootPath = dirname ( ( new \ ReflectionClass ( $ this ) ) -> getFileName ( ) ) ; } return $ this -> rootPath ; }
Get application work space directory.

@return string
Get application work space directory .