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

24 lignes
463 B
PHP
Brut Vue normale Historique

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