for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\WordTree;
/**
* @author Christophe Meneses
*/
class WordTree
{
* If implicit, the input text will be split into sentences and words, and displayed according to frequency.
* If explicit, words and their connections are specified directly.
*
* @var string
protected $format;
* For implicit word trees, the regular expression to use to break the text into sentences. The sentences are then
* broken into words using the wordRegex option.
protected $sentenceRegex;
* Whether the word tree is a prefix tree (root word on the right), a suffix tree (left), or double tree (middle).
protected $type;
* For implicit word trees, which word to use as the root of the tree. (Note that word trees are case sensitive.)
* This option must be specified for double word trees.
protected $word;
* For implicit word trees, the regular expression to use to break sentences into individual words to be displayed.
protected $wordRegex;
* @return $this
public function setFormat(string $format)
$this->format = $format;
return $this;
}
public function setSentenceRegex(string $sentenceRegex)
$this->sentenceRegex = $sentenceRegex;
public function setType(string $type)
$this->type = $type;
public function setWord(string $word)
$this->word = $word;
public function setWordRegex(string $wordRegex)
$this->wordRegex = $wordRegex;