SimpleSoftwareIO\SMS\OutgoingMessage::to PHP Method

to() public method

Sets the to addresses.
public to ( string $number, string $carrier = null )
$number string Holds the number that a message will be sent to.
$carrier string The carrier the number is on.
    public function to($number, $carrier = null)
    {
        $this->to[] = ['number' => $number, 'carrier' => $carrier];
        return $this;
    }