public function applyExtract(IExtractStrategy $extract)
    {
        /* @var $document \TextAnalysis\Documents\TokensDocument */
        $found = [];
        foreach($this->documents as $document)
        {
            $found = array_merge($document->applyExtract($extract), $found);
        }
        return $found;
    }
public function applyExtract(IExtractStrategy $extract)
    {
        /* @var $document \TextAnalysis\Documents\TokensDocument */
        $found = [];
        foreach($this->documents as $document)
        {
            $found = array_merge($document->applyExtract($extract), $found);
        }
        return $found;
    }
public function applyExtract ( IExtractStrategy $ extract ) { /* @var $document \TextAnalysis\Documents\TokensDocument */ $ found = [ ] ; foreach ( $ this -> documents as $ document ) { $ found = array_merge ( $ document -> applyExtract ( $ extract ) , $ found ) ; } return $ found ; }
Apply extract to the document to pull out all the points of
interest
@param IExtractStrategy $extract
@return array
Apply extract to the document to pull out all the points of interest