Automattic\WooCommerce\Vendor\GraphQL\Utils

TypeInfo::getParentTypepublicWC 1.0

Method of the class: TypeInfo{}

No Hooks.

Returns

(CompositeType&Type)|null.

Usage

$TypeInfo = new TypeInfo();
$TypeInfo->getParentType(): ?CompositeType;

TypeInfo::getParentType() code WC 10.9.1

public function getParentType(): ?CompositeType
{
    return $this->parentTypeStack[count($this->parentTypeStack) - 1] ?? null;
}