| 1 | <?php |
||
| 7 | class Referral |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string|null |
||
| 11 | */ |
||
| 12 | protected $ref; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string|null |
||
| 16 | */ |
||
| 17 | protected $source; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string|null |
||
| 21 | */ |
||
| 22 | protected $type; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Referral constructor. |
||
| 26 | */ |
||
| 27 | 2 | public function __construct(?string $ref, ?string $source, ?string $type) |
|
| 33 | |||
| 34 | 1 | public function getRef(): ?string |
|
| 38 | |||
| 39 | 1 | public function getSource(): ?string |
|
| 43 | |||
| 44 | 1 | public function getType(): ?string |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return \Kerox\Messenger\Model\Callback\Referral |
||
| 51 | */ |
||
| 52 | 2 | public static function create(array $callbackData): self |
|
| 60 | } |
||
| 61 |