<?php

namespace ebaySdk\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for StorePreferencesType StructType
 * Meta information extracted from the WSDL
 * - documentation: Store Preferences type.
 * @subpackage Structs
 */
class StorePreferencesType extends AbstractStructBase
{
    /**
     * The VacationPreferences
     * Meta information extracted from the WSDL
     * - documentation: Store vacation hold preferences.
     * - minOccurs: 0
     * @var \ebaySdk\StructType\StoreVacationPreferencesType
     */
    public $VacationPreferences;
    /**
     * Constructor method for StorePreferencesType
     * @uses StorePreferencesType::setVacationPreferences()
     * @param \ebaySdk\StructType\StoreVacationPreferencesType $vacationPreferences
     */
    public function __construct(\ebaySdk\StructType\StoreVacationPreferencesType $vacationPreferences = null)
    {
        $this
            ->setVacationPreferences($vacationPreferences);
    }
    /**
     * Get VacationPreferences value
     * @return \ebaySdk\StructType\StoreVacationPreferencesType|null
     */
    public function getVacationPreferences()
    {
        return $this->VacationPreferences;
    }
    /**
     * Set VacationPreferences value
     * @param \ebaySdk\StructType\StoreVacationPreferencesType $vacationPreferences
     * @return \ebaySdk\StructType\StorePreferencesType
     */
    public function setVacationPreferences(\ebaySdk\StructType\StoreVacationPreferencesType $vacationPreferences = null)
    {
        $this->VacationPreferences = $vacationPreferences;
        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 \ebaySdk\StructType\StorePreferencesType
     */
    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__;
    }
}
