PHP Trait Isswp101\Persimmon\Traits\Relationshipable

Show file Open project: isswp101/elasticsearch-eloquent

Protected Properties

Property Type Description
$_parent Isswp101\Persimmon\ElasticsearchModel
$_parentId mixed

Public Methods

Method Description
getParent ( ) : static Return parent document.
getParentId ( ) : mixed
setParent ( ElasticsearchModel $parent ) Set parent document.
setParentId ( mixed $id )

Method Details

getParent() public method

Return parent document.
public getParent ( ) : static
return static

getParentId() public method

public getParentId ( ) : mixed
return mixed

setParent() public method

Set parent document.
public setParent ( ElasticsearchModel $parent )
$parent Isswp101\Persimmon\ElasticsearchModel

setParentId() public method

public setParentId ( mixed $id )
$id mixed

Property Details

$_parent protected property

protected ElasticsearchModel,Isswp101\Persimmon $_parent
return Isswp101\Persimmon\ElasticsearchModel

$_parentId protected property

protected mixed $_parentId
return mixed