for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kerox\Messenger\Message\Attachment\Template;
use Kerox\Messenger\Message\Attachment\Template;
use Kerox\Messenger\ValidatorTrait;
abstract class AbstractAirline extends Template implements AirlineInterface
{
use ValidatorTrait;
/**
* @var string
*/
protected $locale;
* @var null|string
protected $themeColor;
* AbstractAirline constructor.
*
* @param string $locale
public function __construct(string $locale)
parent::__construct();
$this->isValidLocale($locale);
$this->locale = $locale;
}
* @param string $themeColor
* @return AbstractAirline
public function setThemeColor(string $themeColor): AbstractAirline
$this->isValidColor($themeColor);
$this->themeColor = $themeColor;
return $this;