Make the animal speak.
@param $text string A string you want the animal says
@return string The animal speaks...
975550
public function say($text)
    {
        $message = $this->getSpeechBubble($text);
        
        return str_replace(
          '{{bubble}}',
          $message,
          $this->character
        );
    }
51159
public function sentence(string $text = null): Sentence
    {
        $sentence = Sentence::factory();
        if ($text !== null) {
            $sentence->text($text);
        }

        /** @var ContainerElement $this */
        return $this->addElement($sentence);
    }
741407
public function setText($text)
	{
		if ( ! is_string($text)) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, text, to be a string"
			);
		}
		
		$this->text = $text;
		
		return $this;
	}
1080856
public function quoteIdentifier($text)
    {
        if ($this->getTable()->isIdentifierQuotingEnabled()) {
            return $this->getPlatform()->doQuoting($text);
        }

        return $text;
    }
67267
public function toMorse($text) {
        $text = strtoupper($text);
        $words = preg_split('#\s+#', $text);
        $morse = array_map([$this, 'morseWord'], $words);
        return implode($this->wordSeparator, $morse);
    }
272524
public function choice($text, $choices)
    {
        $helper = $this->getHelper('question');
        //
        $question = new ChoiceQuestion($this->console->question($text.' '), $choices, false);
        //
        $question->setErrorMessage("Your choice '%s' is invalid.");
        //
        return $helper->ask($this->input, $this->output, $question);
    }
533450
public function hidden($text)
    {
        $helper = $this->getHelper('question');
        //
        $question = new Question($this->console->question($text.' '));
        //
        $question->setHidden(true);
        //
        $question->setHiddenFallback(true);
        //
        return $helper->ask($this->input, $this->output, $question);
    }
730823
protected function replaceTextTokens($text)
    {
        foreach ($this->tokens as $key => $val) {
            $text = str_replace('<' . $key . '>', $val, $text);
        }

        return $text;
    }
154169
public static function normalizeText($text)
    {
        $text = strtolower($text);
        $text = preg_replace('/[^a-z0-9 -]/im', ' ', $text);
        $text = preg_replace('/( +)/im', ' ', $text);

        return trim($text);
    }
972795
public function sendText($text)
    {
        $cmd = implode(' ', array('SEND', 'TEXT', '"' . $text . '"'));
        $result = $this->send($cmd);
        if ($result->isResult(-1)) {
            throw new PAGIException('Command failed');
        }
    }
855888
public function label($text)
    {
        $label = self::createElement('label');

        if (isset($this->attributeList['id'])) {
            $label->refer($this->attributeList['id']);
        }

        return $label->text($this)
            ->text($text);
    }
514587
public function speak(
        string $text,
        string $languageFrom,
        string $audioFormat = TtsAudioFormat::AUDIO_MP3,
        array $additionalData = []
    ): TtsResponse {
        $languageFrom = new Language($languageFrom);

        return $this
            ->getTtsApi($additionalData)
            ->textToSpeech($text, new Language($languageFrom), new TtsAudioFormat($audioFormat), $additionalData);
    }
271786
public function getHtml(string $text) : string
    {
        $textAsHtml = htmlspecialchars($text, ENT_QUOTES);
        $textWithNewLines = nl2br($textAsHtml);

        $tokenized = $this->tokenizer->tokenize($textWithNewLines);
        $html = $this->bbCode->format($tokenized);

        return $html;
    }
959586
public function send($text = null)
    {
        if ($text) {
            $this->setText($text);
        }

        $this->client->sendMessage($this);

        return $this;
    }
411736
static public function instance($text=null)
    {
        if ($text) {
            if (isset(static::$instances[$text])) {
                return static::$instances[$text];
            } else {
                $object = static::$instances[$text] = new static($text);
            }
        } else {
            $object = new static();
        }
        
        $object->setSize(300)->setPadding(10);
        
        return $object;
    }
391546
public function setText(string $text): self
    {
        return $this->addPart(Part::create($text, 'text/plain'), true);
    }
723485
public static function humanize(string $text): string
    {
        $text = \str_replace(['-', '_'], ' ', $text);

        return Stringy::create($text)->humanize()->titleize();
    }