for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AnalyzerText package.
*
* @author Peter Gribanov <[email protected]>
*/
namespace AnalyzerText\Text;
* Слово в тексте.
class Word
{
* @var string
protected $word = '';
* Простая форма слова в тексте.
protected $plain = '';
* @param string $word Слово в тексте
* @param string $plain Простая форма слова в тексте
public function __construct($word, $plain)
$this->word = $word;
$this->plain = $plain;
}
* Возвращает слово из текста.
* @return string
public function getWord()
return $this->word;
* Возвращает простую форму слова из текста.
public function getPlain()
return $this->plain;
* Возвращает слово.
public function __toString()