| 1 | <?php |
||
| 10 | class Invitation |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @ORM\Id |
||
| 14 | * @ORM\Column(type="string", length=6) |
||
| 15 | */ |
||
| 16 | protected $code; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @ORM\Column(type="string", length=256) |
||
| 20 | */ |
||
| 21 | protected $email; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * When sending invitation be sure to set this value to `true` |
||
| 25 | * |
||
| 26 | * It can prevent invitations from being sent twice |
||
| 27 | * |
||
| 28 | * @ORM\Column(type="boolean") |
||
| 29 | */ |
||
| 30 | protected $sent = false; |
||
| 31 | |||
| 32 | public function __construct() |
||
| 37 | |||
| 38 | public function getCode() |
||
| 42 | |||
| 43 | public function getEmail() |
||
| 47 | |||
| 48 | public function setEmail($email) |
||
| 52 | |||
| 53 | public function isSent() |
||
| 57 | |||
| 58 | public function send() |
||
| 62 | } |
||
| 63 |