<?php

namespace ebay\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetRecommendationsResponseContainerType StructType
 * Meta informations extracted from the WSDL
 * - documentation: This type is deprecated.
 * @subpackage Structs
 * @date 2017-04-07 16
 */
class GetRecommendationsResponseContainerType extends AbstractStructBase
{
    /**
     * The ListingAnalyzerRecommendations
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var \ebay\StructType\ListingAnalyzerRecommendationsType
     */
    public $ListingAnalyzerRecommendations;
    /**
     * The SIFFTASRecommendations
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var \ebay\StructType\SIFFTASRecommendationsType
     */
    public $SIFFTASRecommendations;
    /**
     * The PricingRecommendations
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var \ebay\StructType\PricingRecommendationsType
     */
    public $PricingRecommendations;
    /**
     * The AttributeRecommendations
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var \ebay\StructType\AttributeRecommendationsType
     */
    public $AttributeRecommendations;
    /**
     * The ProductRecommendations
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var \ebay\StructType\ProductRecommendationsType
     */
    public $ProductRecommendations;
    /**
     * The CorrelationID
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var string
     */
    public $CorrelationID;
    /**
     * The Recommendations
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var \ebay\StructType\RecommendationsType
     */
    public $Recommendations;
    /**
     * The ProductListingDetails
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var \ebay\StructType\ProductListingDetailsType
     */
    public $ProductListingDetails;
    /**
     * The Title
     * Meta informations extracted from the WSDL
     * - documentation: This field is deprecated.
     * - minOccurs: 0
     * @var string
     */
    public $Title;
    /**
     * The any
     * @var \DOMDocument
     */
    public $any;
    /**
     * Constructor method for GetRecommendationsResponseContainerType
     * @uses GetRecommendationsResponseContainerType::setListingAnalyzerRecommendations()
     * @uses GetRecommendationsResponseContainerType::setSIFFTASRecommendations()
     * @uses GetRecommendationsResponseContainerType::setPricingRecommendations()
     * @uses GetRecommendationsResponseContainerType::setAttributeRecommendations()
     * @uses GetRecommendationsResponseContainerType::setProductRecommendations()
     * @uses GetRecommendationsResponseContainerType::setCorrelationID()
     * @uses GetRecommendationsResponseContainerType::setRecommendations()
     * @uses GetRecommendationsResponseContainerType::setProductListingDetails()
     * @uses GetRecommendationsResponseContainerType::setTitle()
     * @uses GetRecommendationsResponseContainerType::setAny()
     * @param \ebay\StructType\ListingAnalyzerRecommendationsType $listingAnalyzerRecommendations
     * @param \ebay\StructType\SIFFTASRecommendationsType $sIFFTASRecommendations
     * @param \ebay\StructType\PricingRecommendationsType $pricingRecommendations
     * @param \ebay\StructType\AttributeRecommendationsType $attributeRecommendations
     * @param \ebay\StructType\ProductRecommendationsType $productRecommendations
     * @param string $correlationID
     * @param \ebay\StructType\RecommendationsType $recommendations
     * @param \ebay\StructType\ProductListingDetailsType $productListingDetails
     * @param string $title
     * @param \DOMDocument $any
     */
    public function __construct(\ebay\StructType\ListingAnalyzerRecommendationsType $listingAnalyzerRecommendations = null, \ebay\StructType\SIFFTASRecommendationsType $sIFFTASRecommendations = null, \ebay\StructType\PricingRecommendationsType $pricingRecommendations = null, \ebay\StructType\AttributeRecommendationsType $attributeRecommendations = null, \ebay\StructType\ProductRecommendationsType $productRecommendations = null, $correlationID = null, \ebay\StructType\RecommendationsType $recommendations = null, \ebay\StructType\ProductListingDetailsType $productListingDetails = null, $title = null, \DOMDocument $any = null)
    {
        $this
            ->setListingAnalyzerRecommendations($listingAnalyzerRecommendations)
            ->setSIFFTASRecommendations($sIFFTASRecommendations)
            ->setPricingRecommendations($pricingRecommendations)
            ->setAttributeRecommendations($attributeRecommendations)
            ->setProductRecommendations($productRecommendations)
            ->setCorrelationID($correlationID)
            ->setRecommendations($recommendations)
            ->setProductListingDetails($productListingDetails)
            ->setTitle($title)
            ->setAny($any);
    }
    /**
     * Get ListingAnalyzerRecommendations value
     * @return \ebay\StructType\ListingAnalyzerRecommendationsType|null
     */
    public function getListingAnalyzerRecommendations()
    {
        return $this->ListingAnalyzerRecommendations;
    }
    /**
     * Set ListingAnalyzerRecommendations value
     * @param \ebay\StructType\ListingAnalyzerRecommendationsType $listingAnalyzerRecommendations
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setListingAnalyzerRecommendations(\ebay\StructType\ListingAnalyzerRecommendationsType $listingAnalyzerRecommendations = null)
    {
        $this->ListingAnalyzerRecommendations = $listingAnalyzerRecommendations;
        return $this;
    }
    /**
     * Get SIFFTASRecommendations value
     * @return \ebay\StructType\SIFFTASRecommendationsType|null
     */
    public function getSIFFTASRecommendations()
    {
        return $this->SIFFTASRecommendations;
    }
    /**
     * Set SIFFTASRecommendations value
     * @param \ebay\StructType\SIFFTASRecommendationsType $sIFFTASRecommendations
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setSIFFTASRecommendations(\ebay\StructType\SIFFTASRecommendationsType $sIFFTASRecommendations = null)
    {
        $this->SIFFTASRecommendations = $sIFFTASRecommendations;
        return $this;
    }
    /**
     * Get PricingRecommendations value
     * @return \ebay\StructType\PricingRecommendationsType|null
     */
    public function getPricingRecommendations()
    {
        return $this->PricingRecommendations;
    }
    /**
     * Set PricingRecommendations value
     * @param \ebay\StructType\PricingRecommendationsType $pricingRecommendations
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setPricingRecommendations(\ebay\StructType\PricingRecommendationsType $pricingRecommendations = null)
    {
        $this->PricingRecommendations = $pricingRecommendations;
        return $this;
    }
    /**
     * Get AttributeRecommendations value
     * @return \ebay\StructType\AttributeRecommendationsType|null
     */
    public function getAttributeRecommendations()
    {
        return $this->AttributeRecommendations;
    }
    /**
     * Set AttributeRecommendations value
     * @param \ebay\StructType\AttributeRecommendationsType $attributeRecommendations
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setAttributeRecommendations(\ebay\StructType\AttributeRecommendationsType $attributeRecommendations = null)
    {
        $this->AttributeRecommendations = $attributeRecommendations;
        return $this;
    }
    /**
     * Get ProductRecommendations value
     * @return \ebay\StructType\ProductRecommendationsType|null
     */
    public function getProductRecommendations()
    {
        return $this->ProductRecommendations;
    }
    /**
     * Set ProductRecommendations value
     * @param \ebay\StructType\ProductRecommendationsType $productRecommendations
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setProductRecommendations(\ebay\StructType\ProductRecommendationsType $productRecommendations = null)
    {
        $this->ProductRecommendations = $productRecommendations;
        return $this;
    }
    /**
     * Get CorrelationID value
     * @return string|null
     */
    public function getCorrelationID()
    {
        return $this->CorrelationID;
    }
    /**
     * Set CorrelationID value
     * @param string $correlationID
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setCorrelationID($correlationID = null)
    {
        // validation for constraint: string
        if (!is_null($correlationID) && !is_string($correlationID)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($correlationID)), __LINE__);
        }
        $this->CorrelationID = $correlationID;
        return $this;
    }
    /**
     * Get Recommendations value
     * @return \ebay\StructType\RecommendationsType|null
     */
    public function getRecommendations()
    {
        return $this->Recommendations;
    }
    /**
     * Set Recommendations value
     * @param \ebay\StructType\RecommendationsType $recommendations
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setRecommendations(\ebay\StructType\RecommendationsType $recommendations = null)
    {
        $this->Recommendations = $recommendations;
        return $this;
    }
    /**
     * Get ProductListingDetails value
     * @return \ebay\StructType\ProductListingDetailsType|null
     */
    public function getProductListingDetails()
    {
        return $this->ProductListingDetails;
    }
    /**
     * Set ProductListingDetails value
     * @param \ebay\StructType\ProductListingDetailsType $productListingDetails
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setProductListingDetails(\ebay\StructType\ProductListingDetailsType $productListingDetails = null)
    {
        $this->ProductListingDetails = $productListingDetails;
        return $this;
    }
    /**
     * Get Title value
     * @return string|null
     */
    public function getTitle()
    {
        return $this->Title;
    }
    /**
     * Set Title value
     * @param string $title
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setTitle($title = null)
    {
        // validation for constraint: string
        if (!is_null($title) && !is_string($title)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($title)), __LINE__);
        }
        $this->Title = $title;
        return $this;
    }
    /**
     * Get any value
     * @uses \DOMDocument::loadXML()
     * @uses \DOMDocument::hasChildNodes()
     * @uses \DOMDocument::saveXML()
     * @uses \DOMNode::item()
     * @uses \ebay\StructType\GetRecommendationsResponseContainerType::setAny()
     * @param bool $asString true: returns XML string, false: returns \DOMDocument
     * @return \DOMDocument|null
     */
    public function getAny($asString = true)
    {
        if (!empty($this->any) && !($this->any instanceof \DOMDocument)) {
            $dom = new \DOMDocument('1.0', 'UTF-8');
            $dom->formatOutput = true;
            if ($dom->loadXML($this->any)) {
                $this->setAny($dom);
            }
            unset($dom);
        }
        return ($asString && ($this->any instanceof \DOMDocument) && $this->any->hasChildNodes()) ? $this->any->saveXML($this->any->childNodes->item(0)) : $this->any;
    }
    /**
     * Set any value
     * @param \DOMDocument $any
     * @return \ebay\StructType\GetRecommendationsResponseContainerType
     */
    public function setAny(\DOMDocument $any = null)
    {
        $this->any = $any;
        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 \ebay\StructType\GetRecommendationsResponseContainerType
     */
    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__;
    }
}
