| 1 | <?php  | 
            ||
| 6 | class Greeting implements ProfileSettingsInterface, \JsonSerializable  | 
            ||
| 7 | { | 
            ||
| 8 | |||
| 9 | use ValidatorTrait;  | 
            ||
| 10 | |||
| 11 | /**  | 
            ||
| 12 | * @var string  | 
            ||
| 13 | */  | 
            ||
| 14 | protected $text;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @var string  | 
            ||
| 18 | */  | 
            ||
| 19 | protected $locale;  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Greeting constructor.  | 
            ||
| 23 | *  | 
            ||
| 24 | * @param string $text  | 
            ||
| 25 | * @param string $locale  | 
            ||
| 26 | */  | 
            ||
| 27 | 2 | public function __construct(string $text, string $locale = self::DEFAULT_LOCALE)  | 
            |
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * @return array  | 
            ||
| 41 | */  | 
            ||
| 42 | 2 | public function jsonSerialize(): array  | 
            |
| 51 | }  | 
            ||
| 52 |