PHP 인터페이스 Camspiers\StatisticalClassifier\DataSource\DataSourceInterface

저자: Cam Spiers ([email protected])
파일 보기 프로젝트 열기: camspiers/statistical-classifier 0 사용 예제들

공개 메소드들

메소드 설명
addDocument ( string $category, string $document ) Adds a document by category to the data
getCategories ( ) : array Returns the categories of the data
getData ( ) : array Get the data
hasCategory ( string $category ) : boolean Returnnes whether or not the data has a category
setData ( array $data ) : null Set data to the data source
write ( ) : null Write the data source if possible

메소드 상세

addDocument() 공개 메소드

Adds a document by category to the data
public addDocument ( string $category, string $document )
$category string The category of the document
$document string The document

getCategories() 공개 메소드

Returns the categories of the data
public getCategories ( ) : array
리턴 array The categories

getData() 공개 메소드

Get the data
public getData ( ) : array
리턴 array The data

hasCategory() 공개 메소드

Returnnes whether or not the data has a category
public hasCategory ( string $category ) : boolean
$category string The category to check
리턴 boolean [description]

setData() 공개 메소드

Set data to the data source
public setData ( array $data ) : null
$data array
리턴 null

write() 공개 메소드

Write the data source if possible
public write ( ) : null
리턴 null