PHP 클래스 Camspiers\StatisticalClassifier\DataSource\DataArray

저자: Cam Spiers ([email protected])
상속: implements Camspiers\StatisticalClassifier\DataSource\DataSourceInterface, implements Serializabl\Serializable
파일 보기 프로젝트 열기: camspiers/statistical-classifier 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config Holds the config class that setData needs to conforms to
$data array Should be in the form: array( array( 'category' => 'somecategory', 'document' => 'Some document' ) )
$processor Processes the data with the config

공개 메소드들

메소드 설명
__construct ( array $data = null ) Creates the data array
addDocument ( $category, $document )
getCategories ( )
getConfig ( ) : mixed Return the config for the data
getData ( )
hasCategory ( $category )
serialize ( ) : string Serialize the class
setConfig ( DataSourceConfiguration $config )
setData ( array $data )
unserialize ( string $data ) : null Restore the serialized class
write ( )

보호된 메소드들

메소드 설명
getProcessor ( ) : mixed Gets the processor
prepare ( ) Read the data and set it
read ( )
setProcessor ( Symfony\Component\Config\Definition\Processor $processor ) Sets the processor for the config

메소드 상세

__construct() 공개 메소드

Creates the data array
public __construct ( array $data = null )
$data array The initial data

addDocument() 공개 메소드

public addDocument ( $category, $document )

getCategories() 공개 메소드

public getCategories ( )

getConfig() 공개 메소드

Return the config for the data
public getConfig ( ) : mixed
리턴 mixed

getData() 공개 메소드

public getData ( )

getProcessor() 보호된 메소드

Gets the processor
protected getProcessor ( ) : mixed
리턴 mixed

hasCategory() 공개 메소드

public hasCategory ( $category )

prepare() 보호된 메소드

Read the data and set it
protected prepare ( )

read() 보호된 메소드

protected read ( )

serialize() 공개 메소드

Serialize the class
public serialize ( ) : string
리턴 string The serialized data

setConfig() 공개 메소드

public setConfig ( DataSourceConfiguration $config )
$config Camspiers\StatisticalClassifier\Config\DataSourceConfiguration

setData() 공개 메소드

public setData ( array $data )
$data array

setProcessor() 보호된 메소드

Sets the processor for the config
protected setProcessor ( Symfony\Component\Config\Definition\Processor $processor )
$processor Symfony\Component\Config\Definition\Processor

unserialize() 공개 메소드

Restore the serialized class
public unserialize ( string $data ) : null
$data string The serialized data
리턴 null

write() 공개 메소드

public write ( )

프로퍼티 상세

$config 보호되어 있는 프로퍼티

Holds the config class that setData needs to conforms to
protected $config

$data 보호되어 있는 프로퍼티

Should be in the form: array( array( 'category' => 'somecategory', 'document' => 'Some document' ) )
protected array $data
리턴 array

$processor 보호되어 있는 프로퍼티

Processes the data with the config
protected $processor