<?php
/**
 * MessageSetting
 *
 * PHP version 7.4
 *
 * @category Class
 * @package  SmartVolution
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 */

/**
 * SV Register Web-services
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 4.15
 * Generated by: https://openapi-generator.tech
 * OpenAPI Generator version: 6.0.0
 */

/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace SmartVolution\Model;

use \ArrayAccess;
use \SmartVolution\ObjectSerializer;

/**
 * MessageSetting Class Doc Comment
 *
 * @category Class
 * @description 
 * @package  SmartVolution
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 * @implements \ArrayAccess<TKey, TValue>
 * @template TKey int|null
 * @template TValue mixed|null
 */
class MessageSetting implements ModelInterface, ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

    /**
      * The original name of the model.
      *
      * @var string
      */
    protected static $openAPIModelName = 'MessageSetting';

    /**
      * Array of property to type mappings. Used for (de)serialization
      *
      * @var string[]
      */
    protected static $openAPITypes = [
        'id' => 'int',
        'from' => 'string',
        'confirmationMessage' => 'string',
        'sendConfirmation' => 'bool',
        'reminderMessage' => 'string',
        'sendReminder' => 'bool',
        'reminderPeriodId' => 'int',
        'modified' => 'int',
        'deleted' => 'bool',
        'cancellationMessage' => 'string',
        'sendCancellation' => 'bool',
        'changeMessage' => 'string',
        'sendChange' => 'bool',
        'onDurationChange' => 'bool',
        'onStoreChange' => 'bool',
        'onClerkChange' => 'bool',
        'onResourceChange' => 'bool',
        'onTypeChange' => 'bool',
        'reminder2Message' => 'string',
        'sendReminder2' => 'bool',
        'reminder2PeriodId' => 'int',
        'birthdayMessage' => 'string',
        'sendBirthday' => 'bool',
        'textsRemaining' => 'int',
        'textsReorderLimit' => 'int',
        'sendTextsReorderAlert' => 'int',
        'sendTextsReorderAlertName' => 'string',
        'textsReorderAlertEmail' => 'string',
        'textsReorderAlertPhone' => 'string'
    ];

    /**
      * Array of property to format mappings. Used for (de)serialization
      *
      * @var string[]
      * @phpstan-var array<string, string|null>
      * @psalm-var array<string, string|null>
      */
    protected static $openAPIFormats = [
        'id' => 'int64',
        'from' => null,
        'confirmationMessage' => null,
        'sendConfirmation' => null,
        'reminderMessage' => null,
        'sendReminder' => null,
        'reminderPeriodId' => 'int64',
        'modified' => 'int64',
        'deleted' => null,
        'cancellationMessage' => null,
        'sendCancellation' => null,
        'changeMessage' => null,
        'sendChange' => null,
        'onDurationChange' => null,
        'onStoreChange' => null,
        'onClerkChange' => null,
        'onResourceChange' => null,
        'onTypeChange' => null,
        'reminder2Message' => null,
        'sendReminder2' => null,
        'reminder2PeriodId' => 'int64',
        'birthdayMessage' => null,
        'sendBirthday' => null,
        'textsRemaining' => 'int64',
        'textsReorderLimit' => 'int64',
        'sendTextsReorderAlert' => 'int32',
        'sendTextsReorderAlertName' => null,
        'textsReorderAlertEmail' => null,
        'textsReorderAlertPhone' => null
    ];

    /**
     * Array of property to type mappings. Used for (de)serialization
     *
     * @return array
     */
    public static function openAPITypes()
    {
        return self::$openAPITypes;
    }

    /**
     * Array of property to format mappings. Used for (de)serialization
     *
     * @return array
     */
    public static function openAPIFormats()
    {
        return self::$openAPIFormats;
    }

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name
     *
     * @var string[]
     */
    protected static $attributeMap = [
        'id' => 'id',
        'from' => 'from',
        'confirmationMessage' => 'confirmationMessage',
        'sendConfirmation' => 'sendConfirmation',
        'reminderMessage' => 'reminderMessage',
        'sendReminder' => 'sendReminder',
        'reminderPeriodId' => 'reminderPeriodId',
        'modified' => 'modified',
        'deleted' => 'deleted',
        'cancellationMessage' => 'cancellationMessage',
        'sendCancellation' => 'sendCancellation',
        'changeMessage' => 'changeMessage',
        'sendChange' => 'sendChange',
        'onDurationChange' => 'onDurationChange',
        'onStoreChange' => 'onStoreChange',
        'onClerkChange' => 'onClerkChange',
        'onResourceChange' => 'onResourceChange',
        'onTypeChange' => 'onTypeChange',
        'reminder2Message' => 'reminder2Message',
        'sendReminder2' => 'sendReminder2',
        'reminder2PeriodId' => 'reminder2PeriodId',
        'birthdayMessage' => 'birthdayMessage',
        'sendBirthday' => 'sendBirthday',
        'textsRemaining' => 'textsRemaining',
        'textsReorderLimit' => 'textsReorderLimit',
        'sendTextsReorderAlert' => 'sendTextsReorderAlert',
        'sendTextsReorderAlertName' => 'sendTextsReorderAlertName',
        'textsReorderAlertEmail' => 'textsReorderAlertEmail',
        'textsReorderAlertPhone' => 'textsReorderAlertPhone'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @var string[]
     */
    protected static $setters = [
        'id' => 'setId',
        'from' => 'setFrom',
        'confirmationMessage' => 'setConfirmationMessage',
        'sendConfirmation' => 'setSendConfirmation',
        'reminderMessage' => 'setReminderMessage',
        'sendReminder' => 'setSendReminder',
        'reminderPeriodId' => 'setReminderPeriodId',
        'modified' => 'setModified',
        'deleted' => 'setDeleted',
        'cancellationMessage' => 'setCancellationMessage',
        'sendCancellation' => 'setSendCancellation',
        'changeMessage' => 'setChangeMessage',
        'sendChange' => 'setSendChange',
        'onDurationChange' => 'setOnDurationChange',
        'onStoreChange' => 'setOnStoreChange',
        'onClerkChange' => 'setOnClerkChange',
        'onResourceChange' => 'setOnResourceChange',
        'onTypeChange' => 'setOnTypeChange',
        'reminder2Message' => 'setReminder2Message',
        'sendReminder2' => 'setSendReminder2',
        'reminder2PeriodId' => 'setReminder2PeriodId',
        'birthdayMessage' => 'setBirthdayMessage',
        'sendBirthday' => 'setSendBirthday',
        'textsRemaining' => 'setTextsRemaining',
        'textsReorderLimit' => 'setTextsReorderLimit',
        'sendTextsReorderAlert' => 'setSendTextsReorderAlert',
        'sendTextsReorderAlertName' => 'setSendTextsReorderAlertName',
        'textsReorderAlertEmail' => 'setTextsReorderAlertEmail',
        'textsReorderAlertPhone' => 'setTextsReorderAlertPhone'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @var string[]
     */
    protected static $getters = [
        'id' => 'getId',
        'from' => 'getFrom',
        'confirmationMessage' => 'getConfirmationMessage',
        'sendConfirmation' => 'getSendConfirmation',
        'reminderMessage' => 'getReminderMessage',
        'sendReminder' => 'getSendReminder',
        'reminderPeriodId' => 'getReminderPeriodId',
        'modified' => 'getModified',
        'deleted' => 'getDeleted',
        'cancellationMessage' => 'getCancellationMessage',
        'sendCancellation' => 'getSendCancellation',
        'changeMessage' => 'getChangeMessage',
        'sendChange' => 'getSendChange',
        'onDurationChange' => 'getOnDurationChange',
        'onStoreChange' => 'getOnStoreChange',
        'onClerkChange' => 'getOnClerkChange',
        'onResourceChange' => 'getOnResourceChange',
        'onTypeChange' => 'getOnTypeChange',
        'reminder2Message' => 'getReminder2Message',
        'sendReminder2' => 'getSendReminder2',
        'reminder2PeriodId' => 'getReminder2PeriodId',
        'birthdayMessage' => 'getBirthdayMessage',
        'sendBirthday' => 'getSendBirthday',
        'textsRemaining' => 'getTextsRemaining',
        'textsReorderLimit' => 'getTextsReorderLimit',
        'sendTextsReorderAlert' => 'getSendTextsReorderAlert',
        'sendTextsReorderAlertName' => 'getSendTextsReorderAlertName',
        'textsReorderAlertEmail' => 'getTextsReorderAlertEmail',
        'textsReorderAlertPhone' => 'getTextsReorderAlertPhone'
    ];

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name
     *
     * @return array
     */
    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @return array
     */
    public static function setters()
    {
        return self::$setters;
    }

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @return array
     */
    public static function getters()
    {
        return self::$getters;
    }

    /**
     * The original name of the model.
     *
     * @return string
     */
    public function getModelName()
    {
        return self::$openAPIModelName;
    }


    /**
     * Associative array for storing property values
     *
     * @var mixed[]
     */
    protected $container = [];

    /**
     * Constructor
     *
     * @param mixed[] $data Associated array of property values
     *                      initializing the model
     */
    public function __construct(array $data = null)
    {
        $this->container['id'] = $data['id'] ?? null;
        $this->container['from'] = $data['from'] ?? null;
        $this->container['confirmationMessage'] = $data['confirmationMessage'] ?? null;
        $this->container['sendConfirmation'] = $data['sendConfirmation'] ?? null;
        $this->container['reminderMessage'] = $data['reminderMessage'] ?? null;
        $this->container['sendReminder'] = $data['sendReminder'] ?? null;
        $this->container['reminderPeriodId'] = $data['reminderPeriodId'] ?? null;
        $this->container['modified'] = $data['modified'] ?? null;
        $this->container['deleted'] = $data['deleted'] ?? null;
        $this->container['cancellationMessage'] = $data['cancellationMessage'] ?? null;
        $this->container['sendCancellation'] = $data['sendCancellation'] ?? null;
        $this->container['changeMessage'] = $data['changeMessage'] ?? null;
        $this->container['sendChange'] = $data['sendChange'] ?? null;
        $this->container['onDurationChange'] = $data['onDurationChange'] ?? null;
        $this->container['onStoreChange'] = $data['onStoreChange'] ?? null;
        $this->container['onClerkChange'] = $data['onClerkChange'] ?? null;
        $this->container['onResourceChange'] = $data['onResourceChange'] ?? null;
        $this->container['onTypeChange'] = $data['onTypeChange'] ?? null;
        $this->container['reminder2Message'] = $data['reminder2Message'] ?? null;
        $this->container['sendReminder2'] = $data['sendReminder2'] ?? null;
        $this->container['reminder2PeriodId'] = $data['reminder2PeriodId'] ?? null;
        $this->container['birthdayMessage'] = $data['birthdayMessage'] ?? null;
        $this->container['sendBirthday'] = $data['sendBirthday'] ?? null;
        $this->container['textsRemaining'] = $data['textsRemaining'] ?? null;
        $this->container['textsReorderLimit'] = $data['textsReorderLimit'] ?? null;
        $this->container['sendTextsReorderAlert'] = $data['sendTextsReorderAlert'] ?? null;
        $this->container['sendTextsReorderAlertName'] = $data['sendTextsReorderAlertName'] ?? null;
        $this->container['textsReorderAlertEmail'] = $data['textsReorderAlertEmail'] ?? null;
        $this->container['textsReorderAlertPhone'] = $data['textsReorderAlertPhone'] ?? null;
    }

    /**
     * Show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalidProperties = [];

        return $invalidProperties;
    }

    /**
     * Validate all the properties in the model
     * return true if all passed
     *
     * @return bool True if all properties are valid
     */
    public function valid()
    {
        return count($this->listInvalidProperties()) === 0;
    }


    /**
     * Gets id
     *
     * @return int|null
     */
    public function getId()
    {
        return $this->container['id'];
    }

    /**
     * Sets id
     *
     * @param int|null $id id
     *
     * @return self
     */
    public function setId($id)
    {
        $this->container['id'] = $id;

        return $this;
    }

    /**
     * Gets from
     *
     * @return string|null
     */
    public function getFrom()
    {
        return $this->container['from'];
    }

    /**
     * Sets from
     *
     * @param string|null $from from
     *
     * @return self
     */
    public function setFrom($from)
    {
        $this->container['from'] = $from;

        return $this;
    }

    /**
     * Gets confirmationMessage
     *
     * @return string|null
     */
    public function getConfirmationMessage()
    {
        return $this->container['confirmationMessage'];
    }

    /**
     * Sets confirmationMessage
     *
     * @param string|null $confirmationMessage confirmation message
     *
     * @return self
     */
    public function setConfirmationMessage($confirmationMessage)
    {
        $this->container['confirmationMessage'] = $confirmationMessage;

        return $this;
    }

    /**
     * Gets sendConfirmation
     *
     * @return bool|null
     */
    public function getSendConfirmation()
    {
        return $this->container['sendConfirmation'];
    }

    /**
     * Sets sendConfirmation
     *
     * @param bool|null $sendConfirmation send confirmation
     *
     * @return self
     */
    public function setSendConfirmation($sendConfirmation)
    {
        $this->container['sendConfirmation'] = $sendConfirmation;

        return $this;
    }

    /**
     * Gets reminderMessage
     *
     * @return string|null
     */
    public function getReminderMessage()
    {
        return $this->container['reminderMessage'];
    }

    /**
     * Sets reminderMessage
     *
     * @param string|null $reminderMessage reminder message
     *
     * @return self
     */
    public function setReminderMessage($reminderMessage)
    {
        $this->container['reminderMessage'] = $reminderMessage;

        return $this;
    }

    /**
     * Gets sendReminder
     *
     * @return bool|null
     */
    public function getSendReminder()
    {
        return $this->container['sendReminder'];
    }

    /**
     * Sets sendReminder
     *
     * @param bool|null $sendReminder send reminder
     *
     * @return self
     */
    public function setSendReminder($sendReminder)
    {
        $this->container['sendReminder'] = $sendReminder;

        return $this;
    }

    /**
     * Gets reminderPeriodId
     *
     * @return int|null
     */
    public function getReminderPeriodId()
    {
        return $this->container['reminderPeriodId'];
    }

    /**
     * Sets reminderPeriodId
     *
     * @param int|null $reminderPeriodId reminder periodId
     *
     * @return self
     */
    public function setReminderPeriodId($reminderPeriodId)
    {
        $this->container['reminderPeriodId'] = $reminderPeriodId;

        return $this;
    }

    /**
     * Gets modified
     *
     * @return int|null
     */
    public function getModified()
    {
        return $this->container['modified'];
    }

    /**
     * Sets modified
     *
     * @param int|null $modified modified
     *
     * @return self
     */
    public function setModified($modified)
    {
        $this->container['modified'] = $modified;

        return $this;
    }

    /**
     * Gets deleted
     *
     * @return bool|null
     */
    public function getDeleted()
    {
        return $this->container['deleted'];
    }

    /**
     * Sets deleted
     *
     * @param bool|null $deleted deleted
     *
     * @return self
     */
    public function setDeleted($deleted)
    {
        $this->container['deleted'] = $deleted;

        return $this;
    }

    /**
     * Gets cancellationMessage
     *
     * @return string|null
     */
    public function getCancellationMessage()
    {
        return $this->container['cancellationMessage'];
    }

    /**
     * Sets cancellationMessage
     *
     * @param string|null $cancellationMessage cancellation message
     *
     * @return self
     */
    public function setCancellationMessage($cancellationMessage)
    {
        $this->container['cancellationMessage'] = $cancellationMessage;

        return $this;
    }

    /**
     * Gets sendCancellation
     *
     * @return bool|null
     */
    public function getSendCancellation()
    {
        return $this->container['sendCancellation'];
    }

    /**
     * Sets sendCancellation
     *
     * @param bool|null $sendCancellation send cancellation
     *
     * @return self
     */
    public function setSendCancellation($sendCancellation)
    {
        $this->container['sendCancellation'] = $sendCancellation;

        return $this;
    }

    /**
     * Gets changeMessage
     *
     * @return string|null
     */
    public function getChangeMessage()
    {
        return $this->container['changeMessage'];
    }

    /**
     * Sets changeMessage
     *
     * @param string|null $changeMessage change message
     *
     * @return self
     */
    public function setChangeMessage($changeMessage)
    {
        $this->container['changeMessage'] = $changeMessage;

        return $this;
    }

    /**
     * Gets sendChange
     *
     * @return bool|null
     */
    public function getSendChange()
    {
        return $this->container['sendChange'];
    }

    /**
     * Sets sendChange
     *
     * @param bool|null $sendChange send change
     *
     * @return self
     */
    public function setSendChange($sendChange)
    {
        $this->container['sendChange'] = $sendChange;

        return $this;
    }

    /**
     * Gets onDurationChange
     *
     * @return bool|null
     */
    public function getOnDurationChange()
    {
        return $this->container['onDurationChange'];
    }

    /**
     * Sets onDurationChange
     *
     * @param bool|null $onDurationChange on duration change
     *
     * @return self
     */
    public function setOnDurationChange($onDurationChange)
    {
        $this->container['onDurationChange'] = $onDurationChange;

        return $this;
    }

    /**
     * Gets onStoreChange
     *
     * @return bool|null
     */
    public function getOnStoreChange()
    {
        return $this->container['onStoreChange'];
    }

    /**
     * Sets onStoreChange
     *
     * @param bool|null $onStoreChange on store change
     *
     * @return self
     */
    public function setOnStoreChange($onStoreChange)
    {
        $this->container['onStoreChange'] = $onStoreChange;

        return $this;
    }

    /**
     * Gets onClerkChange
     *
     * @return bool|null
     */
    public function getOnClerkChange()
    {
        return $this->container['onClerkChange'];
    }

    /**
     * Sets onClerkChange
     *
     * @param bool|null $onClerkChange on clerk change
     *
     * @return self
     */
    public function setOnClerkChange($onClerkChange)
    {
        $this->container['onClerkChange'] = $onClerkChange;

        return $this;
    }

    /**
     * Gets onResourceChange
     *
     * @return bool|null
     */
    public function getOnResourceChange()
    {
        return $this->container['onResourceChange'];
    }

    /**
     * Sets onResourceChange
     *
     * @param bool|null $onResourceChange on resource change
     *
     * @return self
     */
    public function setOnResourceChange($onResourceChange)
    {
        $this->container['onResourceChange'] = $onResourceChange;

        return $this;
    }

    /**
     * Gets onTypeChange
     *
     * @return bool|null
     */
    public function getOnTypeChange()
    {
        return $this->container['onTypeChange'];
    }

    /**
     * Sets onTypeChange
     *
     * @param bool|null $onTypeChange on type change
     *
     * @return self
     */
    public function setOnTypeChange($onTypeChange)
    {
        $this->container['onTypeChange'] = $onTypeChange;

        return $this;
    }

    /**
     * Gets reminder2Message
     *
     * @return string|null
     */
    public function getReminder2Message()
    {
        return $this->container['reminder2Message'];
    }

    /**
     * Sets reminder2Message
     *
     * @param string|null $reminder2Message reminder 2 message
     *
     * @return self
     */
    public function setReminder2Message($reminder2Message)
    {
        $this->container['reminder2Message'] = $reminder2Message;

        return $this;
    }

    /**
     * Gets sendReminder2
     *
     * @return bool|null
     */
    public function getSendReminder2()
    {
        return $this->container['sendReminder2'];
    }

    /**
     * Sets sendReminder2
     *
     * @param bool|null $sendReminder2 send reminder 2
     *
     * @return self
     */
    public function setSendReminder2($sendReminder2)
    {
        $this->container['sendReminder2'] = $sendReminder2;

        return $this;
    }

    /**
     * Gets reminder2PeriodId
     *
     * @return int|null
     */
    public function getReminder2PeriodId()
    {
        return $this->container['reminder2PeriodId'];
    }

    /**
     * Sets reminder2PeriodId
     *
     * @param int|null $reminder2PeriodId reminder 2 periodId
     *
     * @return self
     */
    public function setReminder2PeriodId($reminder2PeriodId)
    {
        $this->container['reminder2PeriodId'] = $reminder2PeriodId;

        return $this;
    }

    /**
     * Gets birthdayMessage
     *
     * @return string|null
     */
    public function getBirthdayMessage()
    {
        return $this->container['birthdayMessage'];
    }

    /**
     * Sets birthdayMessage
     *
     * @param string|null $birthdayMessage birthday message
     *
     * @return self
     */
    public function setBirthdayMessage($birthdayMessage)
    {
        $this->container['birthdayMessage'] = $birthdayMessage;

        return $this;
    }

    /**
     * Gets sendBirthday
     *
     * @return bool|null
     */
    public function getSendBirthday()
    {
        return $this->container['sendBirthday'];
    }

    /**
     * Sets sendBirthday
     *
     * @param bool|null $sendBirthday send birthday
     *
     * @return self
     */
    public function setSendBirthday($sendBirthday)
    {
        $this->container['sendBirthday'] = $sendBirthday;

        return $this;
    }

    /**
     * Gets textsRemaining
     *
     * @return int|null
     */
    public function getTextsRemaining()
    {
        return $this->container['textsRemaining'];
    }

    /**
     * Sets textsRemaining
     *
     * @param int|null $textsRemaining textsRemaining
     *
     * @return self
     */
    public function setTextsRemaining($textsRemaining)
    {
        $this->container['textsRemaining'] = $textsRemaining;

        return $this;
    }

    /**
     * Gets textsReorderLimit
     *
     * @return int|null
     */
    public function getTextsReorderLimit()
    {
        return $this->container['textsReorderLimit'];
    }

    /**
     * Sets textsReorderLimit
     *
     * @param int|null $textsReorderLimit textsReorderLimit
     *
     * @return self
     */
    public function setTextsReorderLimit($textsReorderLimit)
    {
        $this->container['textsReorderLimit'] = $textsReorderLimit;

        return $this;
    }

    /**
     * Gets sendTextsReorderAlert
     *
     * @return int|null
     */
    public function getSendTextsReorderAlert()
    {
        return $this->container['sendTextsReorderAlert'];
    }

    /**
     * Sets sendTextsReorderAlert
     *
     * @param int|null $sendTextsReorderAlert sendTextsReorderAlert
     *
     * @return self
     */
    public function setSendTextsReorderAlert($sendTextsReorderAlert)
    {
        $this->container['sendTextsReorderAlert'] = $sendTextsReorderAlert;

        return $this;
    }

    /**
     * Gets sendTextsReorderAlertName
     *
     * @return string|null
     */
    public function getSendTextsReorderAlertName()
    {
        return $this->container['sendTextsReorderAlertName'];
    }

    /**
     * Sets sendTextsReorderAlertName
     *
     * @param string|null $sendTextsReorderAlertName sendTextsReorderAlert name
     *
     * @return self
     */
    public function setSendTextsReorderAlertName($sendTextsReorderAlertName)
    {
        $this->container['sendTextsReorderAlertName'] = $sendTextsReorderAlertName;

        return $this;
    }

    /**
     * Gets textsReorderAlertEmail
     *
     * @return string|null
     */
    public function getTextsReorderAlertEmail()
    {
        return $this->container['textsReorderAlertEmail'];
    }

    /**
     * Sets textsReorderAlertEmail
     *
     * @param string|null $textsReorderAlertEmail textsReorderAlertEmail
     *
     * @return self
     */
    public function setTextsReorderAlertEmail($textsReorderAlertEmail)
    {
        $this->container['textsReorderAlertEmail'] = $textsReorderAlertEmail;

        return $this;
    }

    /**
     * Gets textsReorderAlertPhone
     *
     * @return string|null
     */
    public function getTextsReorderAlertPhone()
    {
        return $this->container['textsReorderAlertPhone'];
    }

    /**
     * Sets textsReorderAlertPhone
     *
     * @param string|null $textsReorderAlertPhone textsReorderAlertPhone
     *
     * @return self
     */
    public function setTextsReorderAlertPhone($textsReorderAlertPhone)
    {
        $this->container['textsReorderAlertPhone'] = $textsReorderAlertPhone;

        return $this;
    }
    /**
     * Returns true if offset exists. False otherwise.
     *
     * @param integer $offset Offset
     *
     * @return boolean
     */
    public function offsetExists($offset): bool
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     *
     * @param integer $offset Offset
     *
     * @return mixed|null
     */
    #[\ReturnTypeWillChange]
    public function offsetGet($offset)
    {
        return $this->container[$offset] ?? null;
    }

    /**
     * Sets value based on offset.
     *
     * @param int|null $offset Offset
     * @param mixed    $value  Value to be set
     *
     * @return void
     */
    public function offsetSet($offset, $value): void
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     *
     * @param integer $offset Offset
     *
     * @return void
     */
    public function offsetUnset($offset): void
    {
        unset($this->container[$offset]);
    }

    /**
     * Serializes the object to a value that can be serialized natively by json_encode().
     * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
     *
     * @return mixed Returns data which can be serialized by json_encode(), which is a value
     * of any type other than a resource.
     */
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
       return ObjectSerializer::sanitizeForSerialization($this);
    }

    /**
     * Gets the string presentation of the object
     *
     * @return string
     */
    public function __toString()
    {
        return json_encode(
            ObjectSerializer::sanitizeForSerialization($this),
            JSON_PRETTY_PRINT
        );
    }

    /**
     * Gets a header-safe presentation of the object
     *
     * @return string
     */
    public function toHeaderValue()
    {
        return json_encode(ObjectSerializer::sanitizeForSerialization($this));
    }
}


