Elastification PHP Client API
Class

Elastification\Client\Request\V090x\GetMappingRequest

class GetMappingRequest extends AbstractGetMappingRequest

Class GetMappingRequest

Constants

REQUEST_ACTION

Methods

__construct(string $index, string $type, SerializerInterface $serializer, array $serializerParams = array())

from AbstractBaseRequest
null|string getIndex()

from AbstractBaseRequest
null|string getType()

from AbstractBaseRequest
SerializerInterface getSerializer()

from AbstractBaseRequest
array getSerializerParams()

from AbstractBaseRequest
string getMethod()

from AbstractGetMappingRequest
null|string getAction()

from AbstractGetMappingRequest
mixed getBody()

get the body

from AbstractGetMappingRequest
void setBody(mixed $body)

before setting data it should be serialized

from AbstractGetMappingRequest
ResponseInterface createResponse(string $rawData, SerializerInterface $serializer, array $serializerParams = array())

string getSupportedClass()

gets a response class name that is supported by this class

Details

in AbstractBaseRequest at line 59
public __construct(string $index, string $type, SerializerInterface $serializer, array $serializerParams = array())

Parameters

string $index
string $type
SerializerInterface $serializer
array $serializerParams

in AbstractBaseRequest at line 76
public null|string getIndex()

Return Value

null|string

in AbstractBaseRequest at line 84
public null|string getType()

Return Value

null|string

in AbstractBaseRequest at line 93
public SerializerInterface getSerializer()

Return Value

SerializerInterface

in AbstractBaseRequest at line 101
public array getSerializerParams()

Return Value

array

public string getMethod()

Return Value

string

public null|string getAction()

Return Value

null|string

public mixed getBody()

get the body

Return Value

mixed

public void setBody(mixed $body)

before setting data it should be serialized

Parameters

mixed $body

Return Value

void

Exceptions

RequestException

at line 41
public ResponseInterface createResponse(string $rawData, SerializerInterface $serializer, array $serializerParams = array())

Parameters

string $rawData
SerializerInterface $serializer
array $serializerParams

Return Value

ResponseInterface

at line 55
public string getSupportedClass()

gets a response class name that is supported by this class

Return Value

string