/** * ElasticSearch constructor. * * @param Model $model * @param array $mappingProperties * @param int|null $numberOfShards * @param int|null $numberOfReplicas */ public function __construct(Model $model, array $mappingProperties, $numberOfShards = null, $numberOfReplicas = null) { parent::__construct($model); $this->mappingProperties = $mappingProperties; $this->numberOfShards = $numberOfShards; $this->numberOfReplicas = $numberOfReplicas; }
/** * MysqlLike constructor. * * @param Model $model * @param array $searchFields */ public function __construct(Model $model, array $searchFields) { parent::__construct($model); $this->searchFields = $searchFields; }