Automattic\WooCommerce\Vendor\GraphQL\Language

SourceLocation::toArraypublicWC 1.0

Method of the class: SourceLocation{}

No Hooks.

Returns

Array{line:. int, column: int}

Usage

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

SourceLocation::toArray() code WC 10.9.1

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