Reference
C
Class

ApiPlatform\Elasticsearch\State\Options

class ApiPlatform\Elasticsearch\State\Options implements `<a href="/docs/reference/State/OptionsInterface">ApiPlatform\State\OptionsInterface</a>`
{
    public __construct(null|string $index, null|string $type)
    public getIndex(): string
    public withIndex(null|string $index): ApiPlatform\Elasticsearch\State\Options
    public getType(): string
    public withType(null|string $type): ApiPlatform\Elasticsearch\State\Options
}
class ApiPlatform\Elasticsearch\State\Options implements `<a href="/docs/reference/State/OptionsInterface">ApiPlatform\State\OptionsInterface</a>`
{
    public __construct(null|string $index, null|string $type)
    public getIndex(): string
    public withIndex(null|string $index): ApiPlatform\Elasticsearch\State\Options
    public getType(): string
    public withType(null|string $type): ApiPlatform\Elasticsearch\State\Options
}

Properties

index

string $index
string $index

type

string $type
string $type

Methods

__construct

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

Parameters

indexstring
typestring

getIndex

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

Returns

string

withIndex

public withIndex(null|string $index): ApiPlatform\Elasticsearch\State\Options
public withIndex(null|string $index): ApiPlatform\Elasticsearch\State\Options

Parameters

indexstring

Returns

ApiPlatform\Elasticsearch\State\Options

getType

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

Returns

string

withType

public withType(null|string $type): ApiPlatform\Elasticsearch\State\Options
public withType(null|string $type): ApiPlatform\Elasticsearch\State\Options

Parameters

typestring

Returns

ApiPlatform\Elasticsearch\State\Options

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop