Send the message to Slack.

@param string $text The text to send

@return Response
487534
public function send($text = null)
    {
        if ($text) {
            $this->withText($text);
        }

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

        return $this;
    }
130095
public function ask($text, $response = '')
    {
        $helper = $this->getHelper('question');
        //
        $question = new Question($this->console->question($text.' '), $response);
        //
        return $helper->ask($this->input, $this->output, $question);
    }
937868
public function theResponseShouldContain($text)
    {
        $expectedRegexp = '/' . preg_quote($text) . '/i';
        $actual = (string) $this->response->getBody();
        Assertions::assertRegExp($expectedRegexp, $actual);
    }
895829
public function setText(string $text): self
    {
        $text = trim($text);
        if ('' === $text) {
            throw new Exception('The text can not be empty');
        }

        $this->text = $text;

        return $this;
    }
894420
public function text($text)
    {
        if (is_string($text) || settype($text, 'string') !== false) {
            return parent::text($this->encodeString($text));
        }
        throw new \InvalidArgumentException(get_class($this) . ':text - Cannot cast passed value to string (did you forget to define a __toString on your object?)');
    }
40295
public function setText(string $text)
    {
        $this
            ->getScanner()
            ->setText($text);
        $this->buffer = null;
        return $this;
    }
404636
public function setText($text)
	{
		if (!is_array($text) && !$text instanceof self) {
			$text = htmlspecialchars((string)$text, ENT_NOQUOTES, 'UTF-8');
		}

		return $this->setHtml($text);
	}
98619
public function setText( $text ) {
    $this->textOriginal = $text;
    $this->text = preg_replace("/([^\w ]*)/iu", "", $text);
    return $this;
  }
833378
protected function getDataFromText($text)
    {
        try {
            $data = Yaml::parse($text);
        } catch (ParseException $e) {
            return null;
        }
        return $data;
    }
593237
public function write(&$text)
    {
        $text = str_replace(
            array_keys($this->_alias_write),
            array_values($this->_alias_write),
            $text);

        return $this;
    }
1049825
public function send($destination, $text)
    {
        /** @var Response $response */
        $response = $this->browser->post('http://distext.wavy.be/api/sms', array(
            'X-Auth-Token' => $this->apiKey,
        ), json_encode([
            'destination' => $destination,
            'text' => $text,
        ]));
        
        if(!$response->isSuccessful()) {
            $message = $response->getStatusCode() === 401 ? 'Invalid API key' : $response->getReasonPhrase();
            throw new \Exception($message);
        }
    }
542611
protected function frame($text)
    {
        $line   = '+'.str_repeat('-', strlen($text) + 4).'+';
        $this->info($line);
        $this->info("|  $text  |");
        $this->info($line);
    }
632461
public function render($text)
    {
        $response = new ImageResponse('image/png');
        $response->send();

        $image = $this->generate($text);

        imagepng($image);
        imagedestroy($image);
    }
371923
public function setText($text)
    {
        $this->template->trySet('Content', $this->app->_($text));

        return $this;
    }
660060
public function setEmptyText($text = null)
    {
        $this->empty_text = $text === null ? $this->default_empty_text : $text;

        return $this;
    }
242052
public function setText($text)
    {
        $this->entity->setEntityName($text);
        $this->textContent->push($text);

        return $this;
    }
1332126
public function setText($text)
    {
        if (!is_string($text)) {
            throw new InvalidArgumentException('string', 0);
        }

        $text = trim($text);

        if (strpos($text, '#') !== 0) {
            $text = '# ' . $text;
        }

        $this->text = $text;

        return $this;
    }