| 1 | <?php  | 
            ||
| 5 | class Optin  | 
            ||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * @var string  | 
            ||
| 9 | */  | 
            ||
| 10 | private $ref;  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * @param string $ref  | 
            ||
| 14 | */  | 
            ||
| 15 | 3 | public function __construct($ref)  | 
            |
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * @return string  | 
            ||
| 22 | */  | 
            ||
| 23 | 1 | public function getRef()  | 
            |
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * @param array $payload  | 
            ||
| 30 | *  | 
            ||
| 31 | * @return static  | 
            ||
| 32 | */  | 
            ||
| 33 | 1 | public static function create(array $payload)  | 
            |
| 37 | }  | 
            ||
| 38 |