Documer\Storage\Memory::getWordCount PHP Метод

getWordCount() публичный Метод

См. также: Adapter::getWordCount()
public getWordCount ( $word )
    public function getWordCount($word)
    {
        $total = 0;
        foreach ($this->words as $w) {
            if ($w['word'] == $word) {
                $total++;
            }
        }
        return $total;
    }