<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* AccessPackageLocalizedContent 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 Solid_Backups\Strauss\Beta\Microsoft\Graph\Model;
/**
* AccessPackageLocalizedContent 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 AccessPackageLocalizedContent extends Entity
{
    /**
    * Gets the defaultText
    * The fallback string, which is used when a requested localization is not available. Required.
    *
    * @return string The defaultText
    */
    public function getDefaultText()
    {
        if (array_key_exists("defaultText", $this->_propDict)) {
            return $this->_propDict["defaultText"];
        } else {
            return null;
        }
    }

    /**
    * Sets the defaultText
    * The fallback string, which is used when a requested localization is not available. Required.
    *
    * @param string $val The value of the defaultText
    *
    * @return AccessPackageLocalizedContent
    */
    public function setDefaultText($val)
    {
        $this->_propDict["defaultText"] = $val;
        return $this;
    }

    /**
    * Gets the localizedTexts
    * Content represented in a format for a specific locale.
    *
    * @return AccessPackageLocalizedText The localizedTexts
    */
    public function getLocalizedTexts()
    {
        if (array_key_exists("localizedTexts", $this->_propDict)) {
            if (is_a($this->_propDict["localizedTexts"], "Solid_Backups\Strauss\Beta\Microsoft\Graph\Model\AccessPackageLocalizedText")) {
                return $this->_propDict["localizedTexts"];
            } else {
                $this->_propDict["localizedTexts"] = new AccessPackageLocalizedText($this->_propDict["localizedTexts"]);
                return $this->_propDict["localizedTexts"];
            }
        }
        return null;
    }

    /**
    * Sets the localizedTexts
    * Content represented in a format for a specific locale.
    *
    * @param AccessPackageLocalizedText $val The value to assign to the localizedTexts
    *
    * @return AccessPackageLocalizedContent The AccessPackageLocalizedContent
    */
    public function setLocalizedTexts($val)
    {
        $this->_propDict["localizedTexts"] = $val;
         return $this;
    }
}
