Google\Cloud\Compute\Metadata::getProjectId PHP 메소드

getProjectId() 공개 메소드

Example: $projectId = $reader->getProjectId();
public getProjectId ( ) : string
리턴 string
    public function getProjectId()
    {
        if (!isset($this->projectId)) {
            $this->projectId = $this->reader->read('project/project-id');
        }
        return $this->projectId;
    }