| 1 | <?php |
||
| 9 | class PersonaSettings implements \JsonSerializable |
||
| 10 | { |
||
| 11 | use ValidatorTrait; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $name; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $profilePictureUrl; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Persona constructor. |
||
| 25 | */ |
||
| 26 | 1 | public function __construct(string $name, string $profilePictureUrl) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return \Kerox\Messenger\Model\PersonaSettings |
||
| 36 | */ |
||
| 37 | 1 | public static function create(string $name, string $profilePictureUrl): self |
|
| 41 | |||
| 42 | 1 | public function toArray(): array |
|
| 51 | |||
| 52 | 1 | public function jsonSerialize(): array |
|
| 56 | } |
||
| 57 |