<?php

namespace Sabre\OTAAirPrice\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RetailerRules Structs
 * @subpackage Structs
 */
class RetailerRules extends AbstractStructBase
{
    /**
     * The AdjustmentSellingLevel
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $AdjustmentSellingLevel;
    /**
     * The PricingTransaction
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $PricingTransaction;
    /**
     * Constructor method for RetailerRules
     * @uses RetailerRules::setAdjustmentSellingLevel()
     * @uses RetailerRules::setPricingTransaction()
     * @param string $adjustmentSellingLevel
     * @param string $pricingTransaction
     */
    public function __construct($adjustmentSellingLevel = null, $pricingTransaction = null)
    {
        $this
            ->setAdjustmentSellingLevel($adjustmentSellingLevel)
            ->setPricingTransaction($pricingTransaction);
    }
    /**
     * Get AdjustmentSellingLevel value
     * @return string|null
     */
    public function getAdjustmentSellingLevel()
    {
        return $this->AdjustmentSellingLevel;
    }
    /**
     * Set AdjustmentSellingLevel value
     * @param string $adjustmentSellingLevel
     * @return \Sabre\OTAAirPrice\Structs\RetailerRules
     */
    public function setAdjustmentSellingLevel($adjustmentSellingLevel = null)
    {
        $this->AdjustmentSellingLevel = $adjustmentSellingLevel;
        return $this;
    }
    /**
     * Get PricingTransaction value
     * @return string|null
     */
    public function getPricingTransaction()
    {
        return $this->PricingTransaction;
    }
    /**
     * Set PricingTransaction value
     * @param string $pricingTransaction
     * @return \Sabre\OTAAirPrice\Structs\RetailerRules
     */
    public function setPricingTransaction($pricingTransaction = null)
    {
        $this->PricingTransaction = $pricingTransaction;
        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 \Sabre\OTAAirPrice\Structs\RetailerRules
     */
    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__;
    }
}
