Automattic\WooCommerce\Api\Infrastructure
GraphQLControllerBase::get_status_resolver
Return the HTTP status resolver instance to use for this controller, or null to opt out. Default: null (use the framework defaults).
Autogenerated subclasses override this when the plugin ships a <plugin-api-namespace>\Infrastructure\HttpStatusResolver convention class. The returned object is duck-typed: it must expose public function resolve_status( int$default_status, array$output, \WP_REST_Request$request): int, must return an int, and must not throw. A throw is treated as a plugin bug and produces a fixed 500 INTERNAL_ERROR response — see {@see self::pick_status()} and {@see self::handle_request()}.
Method of the class: GraphQLControllerBase{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->get_status_resolver(): ?object;
GraphQLControllerBase::get_status_resolver() GraphQLControllerBase::get status resolver code WC 10.9.1
protected function get_status_resolver(): ?object {
return null;
}