PHP 클래스 TextAnalysis\Collections\DocumentArrayCollection

상속: implements TextAnalysis\Interfaces\ICollection
파일 보기 프로젝트 열기: yooper/php-text-analysis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$currentDocument TextAnalysis\Documents\DocumentAbstract When looped through this is the current document
$documents array An array of documents

공개 메소드들

메소드 설명
__construct ( array $documents ) An array of DocumentAbstract objects
__destruct ( )
applyExtract ( TextAnalysis\Interfaces\IExtractStrategy $extract ) : array Apply extract to the document to pull out all the points of interest
applyStemmers ( array $stemmers )
applyTransformations ( array $transformations )
count ( ) : integer
current ( ) : TextAnalysis\Documents\DocumentAbstract
getIterator ( ) : ArrayIterator
next ( )
offsetExists ( mixed $key ) : boolean
offsetGet ( mixed $key ) : TextAnalysis\Documents\DocumentAbstract
offsetSet ( mixed $key, TextAnalysis\Documents\DocumentAbstract $value ) : boolean
offsetUnset ( mixed $key ) : null
rewind ( )
valid ( ) : boolean

메소드 상세

__construct() 공개 메소드

An array of DocumentAbstract objects
public __construct ( array $documents )
$documents array

__destruct() 공개 메소드

public __destruct ( )

applyExtract() 공개 메소드

Apply extract to the document to pull out all the points of interest
public applyExtract ( TextAnalysis\Interfaces\IExtractStrategy $extract ) : array
$extract TextAnalysis\Interfaces\IExtractStrategy
리턴 array

applyStemmers() 공개 메소드

public applyStemmers ( array $stemmers )
$stemmers array An array of stemmers Apply the collection of stem transformers to the documents

applyTransformations() 공개 메소드

public applyTransformations ( array $transformations )
$transformations array An array of Apply the collection of token transformers to the documents

count() 공개 메소드

public count ( ) : integer
리턴 integer

current() 공개 메소드

public current ( ) : TextAnalysis\Documents\DocumentAbstract
리턴 TextAnalysis\Documents\DocumentAbstract

getIterator() 공개 메소드

next() 공개 메소드

public next ( )

offsetExists() 공개 메소드

public offsetExists ( mixed $key ) : boolean
$key mixed
리턴 boolean

offsetGet() 공개 메소드

public offsetGet ( mixed $key ) : TextAnalysis\Documents\DocumentAbstract
$key mixed
리턴 TextAnalysis\Documents\DocumentAbstract

offsetSet() 공개 메소드

public offsetSet ( mixed $key, TextAnalysis\Documents\DocumentAbstract $value ) : boolean
$key mixed
$value TextAnalysis\Documents\DocumentAbstract
리턴 boolean

offsetUnset() 공개 메소드

public offsetUnset ( mixed $key ) : null
$key mixed
리턴 null

rewind() 공개 메소드

public rewind ( )

valid() 공개 메소드

public valid ( ) : boolean
리턴 boolean

프로퍼티 상세

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

When looped through this is the current document
protected DocumentAbstract,TextAnalysis\Documents $currentDocument
리턴 TextAnalysis\Documents\DocumentAbstract

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

An array of documents
protected array $documents
리턴 array