<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Sales.PriceListExport.Response StructType
 * @subpackage Structs
 */
class BizAction_Sales_PriceListExport_Response extends AnyEntity
{
    /**
     * The ExportedFileUrl
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $ExportedFileUrl;
    /**
     * Constructor method for BizAction.Sales.PriceListExport.Response
     * @uses BizAction_Sales_PriceListExport_Response::setExportedFileUrl()
     * @param string $exportedFileUrl
     */
    public function __construct($exportedFileUrl = null)
    {
        $this
            ->setExportedFileUrl($exportedFileUrl);
    }
    /**
     * Get ExportedFileUrl value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getExportedFileUrl()
    {
        return isset($this->ExportedFileUrl) ? $this->ExportedFileUrl : null;
    }
    /**
     * Set ExportedFileUrl value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $exportedFileUrl
     * @return \patest\StructType\BizAction_Sales_PriceListExport_Response
     */
    public function setExportedFileUrl($exportedFileUrl = null)
    {
        // validation for constraint: string
        if (!is_null($exportedFileUrl) && !is_string($exportedFileUrl)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($exportedFileUrl, true), gettype($exportedFileUrl)), __LINE__);
        }
        if (is_null($exportedFileUrl) || (is_array($exportedFileUrl) && empty($exportedFileUrl))) {
            unset($this->ExportedFileUrl);
        } else {
            $this->ExportedFileUrl = $exportedFileUrl;
        }
        return $this;
    }
}
