PHP Class Sleimanx2\Plastic\Mappings\Mapping

Show file Open project: sleimanx2/plastic

Protected Properties

Property Type Description
$model Illuminate\Database\Eloquent\Model Eloquent instance.

Public Methods

Method Description
__construct ( ) Mapping constructor.
getModelIndex ( ) : mixed Get the model elastic type.
getModelType ( ) : mixed Get the model elastic type.

Protected Methods

Method Description
prepareModel ( ) Validate the given model and create a new instance.

Method Details

__construct() public method

Mapping constructor.
public __construct ( )

getModelIndex() public method

Get the model elastic type.
public getModelIndex ( ) : mixed
return mixed

getModelType() public method

Get the model elastic type.
public getModelType ( ) : mixed
return mixed

prepareModel() protected method

Validate the given model and create a new instance.
protected prepareModel ( )

Property Details

$model protected property

Eloquent instance.
protected Model,Illuminate\Database\Eloquent $model
return Illuminate\Database\Eloquent\Model