<?php

namespace EbaySdk\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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