\Camspiers\StatisticalClassifier\DataSourceDataSourceInterface

Summary

Methods
Constants
write()
getData()
setData()
getCategories()
hasCategory()
addDocument()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

write()

write() : null

Write the data source if possible

Returns

null

getData()

getData() : array

Get the data

Returns

array —

The data

setData()

setData(array $data) : null

Set data to the data source

Parameters

array $data

Returns

null

getCategories()

getCategories() : array

Returns the categories of the data

Returns

array —

The categories

hasCategory()

hasCategory(string $category) : boolean

Returnnes whether or not the data has a category

Parameters

string $category

The category to check

Returns

boolean —

[description]

addDocument()

addDocument(string $category, string $document)

Adds a document by category to the data

Parameters

string $category

The category of the document

string $document

The document