Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
NonNull::getInnermostType
Method of the class: NonNull{}
No Hooks.
Returns
null. Nothing (null).
Usage
$NonNull = new NonNull(); $NonNull->getInnermostType(): NamedType;
NonNull::getInnermostType() NonNull::getInnermostType code WC 10.9.1
public function getInnermostType(): NamedType
{
$type = $this->getWrappedType();
while ($type instanceof WrappingType) {
$type = $type->getWrappedType();
}
assert($type instanceof NamedType, 'known because we unwrapped all the way down');
return $type;
}