Automattic\WooCommerce\Vendor\GraphQL\Language\AST

Location::toArraypublicWC 1.0

Method of the class: Location{}

No Hooks.

Returns

LocationArray.

Usage

$Location = new Location();
$Location->toArray(): array;

Location::toArray() code WC 10.9.1

public function toArray(): array
{
    return [
        'start' => $this->start,
        'end' => $this->end,
    ];
}