public function getName()
    {
        if (null === $this->name) {
            $this->name = preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->rootDir));
        }

        return $this->name;
    }
public function getName()
    {
        if (null === $this->name) {
            $this->name = preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->rootDir));
        }

        return $this->name;
    }
public function getName ( ) { if ( null === $ this -> name ) { $ this -> name = preg_replace ( '/[^a-zA-Z0-9_]+/' , '' , basename ( $ this -> rootDir ) ) ; } return $ this -> name ; }
Gets the name of the application.

@return string The application name

@api
Gets the name of the application .