public function get_gitlab_id() {
		$id       = null;
		$response = isset( $this->response['project_id'] ) ? $this->response['project_id'] : false;

		if ( ! $response ) {
			self::$method = 'projects';
			$id           = implode( '/', [ $this->type->owner, $this->type->slug ] );
			$id           = rawurlencode( $id );
			$response     = $this->api( '/projects/' . $id );

			if ( $this->validate_response( $response ) ) {
				return $id;
			}

			if ( $response && $this->type->slug === $response->path ) {
				$id = $response->id;
				$this->set_repo_cache( 'project_id', $id );
				$this->set_repo_cache( 'project', $response );
			}

			return $id;
		}

		return $response;
	}
public function get_gitlab_id() {
		$id       = null;
		$response = isset( $this->response['project_id'] ) ? $this->response['project_id'] : false;

		if ( ! $response ) {
			self::$method = 'projects';
			$id           = implode( '/', [ $this->type->owner, $this->type->slug ] );
			$id           = rawurlencode( $id );
			$response     = $this->api( '/projects/' . $id );

			if ( $this->validate_response( $response ) ) {
				return $id;
			}

			if ( $response && $this->type->slug === $response->path ) {
				$id = $response->id;
				$this->set_repo_cache( 'project_id', $id );
				$this->set_repo_cache( 'project', $response );
			}

			return $id;
		}

		return $response;
	}
public function get_gitlab_id ( ) { $ id = null ; $ response = isset ( $ this -> response [ 'project_id' ] ) ? $ this -> response [ 'project_id' ] : false ; if ( ! $ response ) { self :: $ method = 'projects' ; $ id = implode ( '/' , [ $ this -> type -> owner , $ this -> type -> slug ] ) ; $ id = rawurlencode ( $ id ) ; $ response = $ this -> api ( '/projects/' . $ id ) ; if ( $ this -> validate_response ( $ response ) ) { return $ id ; } if ( $ response && $ this -> type -> slug === $ response -> path ) { $ id = $ response -> id ; $ this -> set_repo_cache ( 'project_id' , $ id ) ; $ this -> set_repo_cache ( 'project' , $ response ) ; } return $ id ; } return $ response ; }
Get GitLab project ID and project meta.

@return string|int
Get GitLab project ID and project meta .