<?php

namespace LewisLarsen\Ebay\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetStorePreferencesResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Base response of the <b>GetStorePreferences</b> call.
 * @subpackage Structs
 */
class GetStorePreferencesResponseType extends AbstractResponseType
{
    /**
     * The StorePreferences
     * Meta information extracted from the WSDL
     * - documentation: This container consists of the seller's current eBay Store preferences. Currently, the only eBay Store preferences are related to putting an eBay Store on vacation mode, but more preferences may get added in the future.
     * - minOccurs: 0
     * @var \LewisLarsen\Ebay\StructType\StorePreferencesType
     */
    public $StorePreferences;
    /**
     * Constructor method for GetStorePreferencesResponseType
     * @uses GetStorePreferencesResponseType::setStorePreferences()
     * @param \LewisLarsen\Ebay\StructType\StorePreferencesType $storePreferences
     */
    public function __construct(\LewisLarsen\Ebay\StructType\StorePreferencesType $storePreferences = null)
    {
        $this
            ->setStorePreferences($storePreferences);
    }
    /**
     * Get StorePreferences value
     * @return \LewisLarsen\Ebay\StructType\StorePreferencesType|null
     */
    public function getStorePreferences()
    {
        return $this->StorePreferences;
    }
    /**
     * Set StorePreferences value
     * @param \LewisLarsen\Ebay\StructType\StorePreferencesType $storePreferences
     * @return \LewisLarsen\Ebay\StructType\GetStorePreferencesResponseType
     */
    public function setStorePreferences(\LewisLarsen\Ebay\StructType\StorePreferencesType $storePreferences = null)
    {
        $this->StorePreferences = $storePreferences;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \LewisLarsen\Ebay\StructType\GetStorePreferencesResponseType
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
