|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace MessageBird\Objects; |
| 4 | + |
| 5 | +/** |
| 6 | + * Class Verify |
| 7 | + * |
| 8 | + * @package MessageBird\Objects |
| 9 | + */ |
| 10 | +class Verify extends Base |
| 11 | +{ |
| 12 | + const STATUS_SENT = 'sent'; |
| 13 | + const STATUS_VERIFIED = 'verified'; |
| 14 | + const STATUS_FAILED = 'failed'; |
| 15 | + const STATUS_EXPIRED = 'expired'; |
| 16 | + const STATUS_DELETED = 'deleted'; |
| 17 | + |
| 18 | + /** |
| 19 | + * An unique random ID which is created on the MessageBird platform and is returned upon |
| 20 | + * creation of the object. |
| 21 | + * |
| 22 | + * @var string |
| 23 | + */ |
| 24 | + protected $id; |
| 25 | + |
| 26 | + /** |
| 27 | + * The URL of the created object. |
| 28 | + * |
| 29 | + * @var string |
| 30 | + */ |
| 31 | + protected $href; |
| 32 | + |
| 33 | + /** |
| 34 | + * The msisdn of the recipient |
| 35 | + * |
| 36 | + * @var int |
| 37 | + */ |
| 38 | + public $recipient; |
| 39 | + |
| 40 | + /** |
| 41 | + * A client reference. Here you can put your own reference, |
| 42 | + * like your internal reference. |
| 43 | + * |
| 44 | + * @var string |
| 45 | + */ |
| 46 | + public $reference; |
| 47 | + |
| 48 | + /** |
| 49 | + * A hash containing one href entry referring to the URL of the created object. |
| 50 | + * The entry can either refer to either the messages or the voicemessages endpoint |
| 51 | + * |
| 52 | + * @var object |
| 53 | + */ |
| 54 | + protected $messages; |
| 55 | + |
| 56 | + /** |
| 57 | + * The status of the Verify. Possible values: sent, expired, failed, verified, and deleted |
| 58 | + * |
| 59 | + * @var string |
| 60 | + */ |
| 61 | + protected $status; |
| 62 | + |
| 63 | + /** |
| 64 | + * The date and time of the creation of the hlr in RFC3339 format (Y-m-d\TH:i:sP) |
| 65 | + * |
| 66 | + * @var string |
| 67 | + */ |
| 68 | + protected $createdDatetime; |
| 69 | + |
| 70 | + /** |
| 71 | + * The date and time indicating the expiration time of the verify object in RFC3339 format (Y-m-d\TH:i:sP) |
| 72 | + * |
| 73 | + * @var string |
| 74 | + */ |
| 75 | + protected $validUntilDatetime; |
| 76 | + |
| 77 | + |
| 78 | + /** |
| 79 | + * Get the created id |
| 80 | + * |
| 81 | + * @return mixed |
| 82 | + */ |
| 83 | + public function getId() |
| 84 | + { |
| 85 | + return $this->id; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Get the created href |
| 90 | + * |
| 91 | + * @return string |
| 92 | + */ |
| 93 | + public function getHref() |
| 94 | + { |
| 95 | + return $this->href; |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Get the created href |
| 100 | + * |
| 101 | + * @return string |
| 102 | + */ |
| 103 | + public function getMessage() |
| 104 | + { |
| 105 | + return $this->messages->href; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * Get the status |
| 110 | + * |
| 111 | + * @return string |
| 112 | + */ |
| 113 | + public function getStatus() |
| 114 | + { |
| 115 | + return $this->status; |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * Get the $createdDatetime value |
| 120 | + * |
| 121 | + * @return string |
| 122 | + */ |
| 123 | + public function getCreatedDatetime() |
| 124 | + { |
| 125 | + return $this->createdDatetime; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * Get the $validUntilDatetime value |
| 130 | + * |
| 131 | + * @return string |
| 132 | + */ |
| 133 | + public function getValidUntilDatetime() |
| 134 | + { |
| 135 | + return $this->validUntilDatetime; |
| 136 | + } |
| 137 | +} |
0 commit comments