linkmobility-php-client/src/ValueObject/SmsTextMessage.php

22 lines
393 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace D3\LinkmobilityClient\ValueObject;
use Phlib\SmsLength\SmsLength;
class SmsTextMessage extends SmsMessageAbstract
{
/**
* @param string $message
*/
public function __construct(string $message)
{
parent::__construct( $message);
$smsLength = new SmsLength($this->value);
$smsLength->validate();
}
}