PHP Trait Isswp101\Persimmon\Traits\Elasticsearchable

Show file Open project: isswp101/elasticsearch-eloquent

Public Properties

Property Type Description
$_innerHits Isswp101\Persimmon\Elasticsearch\InnerHits
$_position integer
$_score float

Protected Properties

Property Type Description
$_index string
$_parentType string
$_type string

Public Methods

Method Description
fill ( array $attributes )
fillByInnerHits ( array $response )
fillByResponse ( array $response )
getId ( )
getIndex ( ) : string
getInnerHits ( ) : InnerHits
getParentId ( )
getParentType ( ) : string
getPath ( )
getPosition ( )
getType ( ) : string
setId ( $id )
setParentId ( $id )

Protected Methods

Method Description
setInnerHits ( InnerHits $innerHits )
validateModelEndpoint ( )

Method Details

fill() abstract public method

abstract public fill ( array $attributes )
$attributes array

fillByInnerHits() public method

public fillByInnerHits ( array $response )
$response array

fillByResponse() public method

public fillByResponse ( array $response )
$response array

getId() abstract public method

abstract public getId ( )

getIndex() public static method

public static getIndex ( ) : string
return string

getInnerHits() public method

public getInnerHits ( ) : InnerHits
return Isswp101\Persimmon\Elasticsearch\InnerHits

getParentId() abstract public method

abstract public getParentId ( )

getParentType() public static method

public static getParentType ( ) : string
return string

getPath() public method

public getPath ( )

getPosition() public method

public getPosition ( )

getType() public static method

public static getType ( ) : string
return string

setId() abstract public method

abstract public setId ( $id )

setInnerHits() protected method

protected setInnerHits ( InnerHits $innerHits )
$innerHits Isswp101\Persimmon\Elasticsearch\InnerHits

setParentId() abstract public method

abstract public setParentId ( $id )

validateModelEndpoint() final protected method

final protected validateModelEndpoint ( )

Property Details

$_index protected static property

protected static string $_index
return string

$_innerHits public property

public InnerHits,Isswp101\Persimmon\Elasticsearch $_innerHits
return Isswp101\Persimmon\Elasticsearch\InnerHits

$_parentType protected static property

protected static string $_parentType
return string

$_position public property

public int $_position
return integer

$_score public property

public float $_score
return float

$_type protected static property

protected static string $_type
return string