Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

ListOfType::getInnermostTypepublicWC 1.0

Method of the class: ListOfType{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ListOfType = new ListOfType();
$ListOfType->getInnermostType(): NamedType;

ListOfType::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;
}