src/ReflectionFile.php
public function getFileNamespaces()
    {
        if (!isset($this->fileNamespaces)) {
            $this->fileNamespaces = $this->findFileNamespaces();
        }

        return $this->fileNamespaces;
    }
public function getFileNamespaces()
    {
        if (!isset($this->fileNamespaces)) {
            $this->fileNamespaces = $this->findFileNamespaces();
        }

        return $this->fileNamespaces;
    }
public function getFileNamespaces ( ) { if ( ! isset ( $ this -> fileNamespaces ) ) { $ this -> fileNamespaces = $ this -> findFileNamespaces ( ) ; } return $ this -> fileNamespaces ; }
Gets the list of namespaces in the file

@return array|ReflectionFileNamespace[]
Gets the list of namespaces in the file