Automattic\WooCommerce\Vendor\GraphQL\Error

Error::getSource │ public │ WC 1.0

Method of the class: Error{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Error = new Error();
$Error->getSource(): ?Source;

Error::getSource() code WC 11.1.2

public function getSource(): ?Source
{
    return $this->source
        ??= $this->nodes[0]->loc->source
        ?? null;
}