Reference
C
Class

ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata

See also

Methods

__construct

public __construct(null|string $index, string $type)
public __construct(null|string $index, string $type)

Parameters

indexstring
typestring

withIndex

Gets a new instance with the given index.

Parameters

indexstring

Returns

ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata

getIndex

Gets the document index.

public getIndex(): string
public getIndex(): string

Returns

string

withType

Gets a new instance with the given type.

Parameters

typestring

Returns

ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata

getType

Gets the document type.

public getType(): string
public getType(): string

Returns

string

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop