\Camspiers\StatisticalClassifier\ModelCachedModel

Summary

Methods
Properties
Constants
__construct()
setModel()
isPrepared()
setPrepared()
getModel()
No public properties found
No constants found
No protected methods found
$prepared
$model
N/A
No private methods found
$modelName
$cache
N/A

Properties

$prepared

$prepared : boolean

This is an status variable indicating that the nessacary processing has occured on the model

Type

boolean

$model

$model : array

The built model

Type

array

$modelName

$modelName : string

The name of the model

Type

string

$cache

$cache : \CacheCache\Cache

An instance of Cache

Type

\CacheCache\Cache

Methods

__construct()

__construct(string $modelName, \CacheCache\Cache $cache)

Create the CachedModel using the modelname, cache and datasource

Parameters

string $modelName

The name of the model

\CacheCache\Cache $cache

The cache to use

setModel()

setModel(mixed $model) : mixed|void

Parameters

mixed $model

Returns

mixed|void

isPrepared()

isPrepared()

setPrepared()

setPrepared(mixed $prepared) : mixed|void

Parameters

mixed $prepared

Returns

mixed|void

getModel()

getModel() : array

Returns

array