HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bdedition/www/core/vendor/messagebird/php-rest-api/src/MessageBird/Objects/Verify.php
<?php

namespace MessageBird\Objects;

/**
 * Class Verify
 *
 * @package MessageBird\Objects
 */
class Verify extends Base
{
    public const STATUS_SENT = 'sent';
    public const STATUS_VERIFIED = 'verified';
    public const STATUS_FAILED = 'failed';
    public const STATUS_EXPIRED = 'expired';
    public const STATUS_DELETED = 'deleted';
    /**
     * The msisdn or email of the recipient
     *
     * @var int|string
     */
    public $recipient;
    /**
     * A client reference. Here you can put your own reference,
     * like your internal reference.
     *
     * @var string
     */
    public $reference;
    /**
     * An unique random ID which is created on the MessageBird platform and is returned upon
     * creation of the object.
     *
     * @var string
     */
    protected $id;
    /**
     * The URL of the created object.
     *
     * @var string
     */
    protected $href;
    /**
     * An associative array containing one href entry referring to the URL of the created object.
     * The entry can either refer to either the messages or the voicemessages endpoint
     *
     * @var object
     */
    protected $messages;

    /**
     * The status of the Verify. Possible values: sent, expired, failed, verified, and deleted
     *
     * @var string
     */
    protected $status;

    /**
     * The date and time of the creation of the hlr in RFC3339 format (Y-m-d\TH:i:sP)
     *
     * @var string
     */
    protected $createdDatetime;

    /**
     * The date and time indicating the expiration time of the verify object in RFC3339 format (Y-m-d\TH:i:sP)
     *
     * @var string
     */
    protected $validUntilDatetime;


    /**
     * Get the created id
     *
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Get the created href
     */
    public function getHref(): string
    {
        return $this->href;
    }

    /**
     * Get the created href
     */
    public function getMessage(): string
    {
        return $this->messages->href;
    }

    /**
     * Get the status
     */
    public function getStatus(): string
    {
        return $this->status;
    }

    /**
     * Get the $createdDatetime value
     */
    public function getCreatedDatetime(): string
    {
        return $this->createdDatetime;
    }

    /**
     * Get the $validUntilDatetime value
     */
    public function getValidUntilDatetime(): string
    {
        return $this->validUntilDatetime;
    }
}