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/Voice/Call.php
<?php

namespace MessageBird\Objects\Voice;

use MessageBird\Objects\Base;

class Call extends Base
{
    /**
     * The caller ID of the call
     *
     * @var string
     */
    public $source;
    /**
     * The number/address to be called.
     *
     * @var string
     */
    public $destination;
    /**
     * The call flow object to be executed when the call is answered.
     *
     * @var CallFlow
     */
    public $callFlow;
    /**
     * The unique ID of the call
     *
     * @var string
     */
    protected $id;
    /**
     * The unique ID of the number that is/was called
     *
     * @var string
     */
    protected $numberId;

    /**
     * The status of the call. Possible values: starting, ongoing, ended.
     *
     * @var string
     */
    protected $status;

    /**
     * The date and time the call was created
     *
     * @var string
     */
    protected $createdAt;

    /**
     * The date and time the call was last updated
     *
     * @var string
     */
    protected $updatedAt;

    /**
     * The date and time the call ended
     *
     * @var string
     */
    protected $endedAt;

    /**
     * @inheritdoc
     */
    public function loadFromArray($object): self
    {
        parent::loadFromArray($object);

        if (!empty($this->callFlow)) {
            $callFlow = new CallFlow();
            $this->callFlow = $callFlow->loadFromArray($this->callFlow);
        }

        return $this;
    }

    public function getId(): string
    {
        return $this->id;
    }

    public function getNumberId(): string
    {
        return $this->numberId;
    }

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

    public function getCreatedAt(): string
    {
        return $this->createdAt;
    }

    public function getUpdatedAt(): string
    {
        return $this->updatedAt;
    }

    public function getEndedAt(): string
    {
        return $this->endedAt;
    }
}