PHP Class Camspiers\StatisticalClassifier\Model\CachedModel

Author: Cam Spiers ([email protected])
Inheritance: extends Model
Show file Open project: camspiers/statistical-classifier

Public Methods

Method Description
__construct ( string $modelName, CacheCache\Cache $cache ) Create the CachedModel using the modelname, cache and datasource
setModel ( array $model ) : mixed | void

Method Details

__construct() public method

Create the CachedModel using the modelname, cache and datasource
public __construct ( string $modelName, CacheCache\Cache $cache )
$modelName string The name of the model
$cache CacheCache\Cache The cache to use

setModel() public method

public setModel ( array $model ) : mixed | void
$model array
return mixed | void