<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for bSRO.Sales.FileToUpload StructType
 * @subpackage Structs
 */
class BSRO_Sales_FileToUpload extends AnyEntity
{
    /**
     * The Comment
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Comment;
    /**
     * The FileName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $FileName;
    /**
     * The LinkUrlOrPath
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $LinkUrlOrPath;
    /**
     * Constructor method for bSRO.Sales.FileToUpload
     * @uses BSRO_Sales_FileToUpload::setComment()
     * @uses BSRO_Sales_FileToUpload::setFileName()
     * @uses BSRO_Sales_FileToUpload::setLinkUrlOrPath()
     * @param string $comment
     * @param string $fileName
     * @param string $linkUrlOrPath
     */
    public function __construct($comment = null, $fileName = null, $linkUrlOrPath = null)
    {
        $this
            ->setComment($comment)
            ->setFileName($fileName)
            ->setLinkUrlOrPath($linkUrlOrPath);
    }
    /**
     * Get Comment 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 getComment()
    {
        return isset($this->Comment) ? $this->Comment : null;
    }
    /**
     * Set Comment 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 $comment
     * @return \patest\StructType\BSRO_Sales_FileToUpload
     */
    public function setComment($comment = null)
    {
        // validation for constraint: string
        if (!is_null($comment) && !is_string($comment)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($comment, true), gettype($comment)), __LINE__);
        }
        if (is_null($comment) || (is_array($comment) && empty($comment))) {
            unset($this->Comment);
        } else {
            $this->Comment = $comment;
        }
        return $this;
    }
    /**
     * Get FileName 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 getFileName()
    {
        return isset($this->FileName) ? $this->FileName : null;
    }
    /**
     * Set FileName 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 $fileName
     * @return \patest\StructType\BSRO_Sales_FileToUpload
     */
    public function setFileName($fileName = null)
    {
        // validation for constraint: string
        if (!is_null($fileName) && !is_string($fileName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($fileName, true), gettype($fileName)), __LINE__);
        }
        if (is_null($fileName) || (is_array($fileName) && empty($fileName))) {
            unset($this->FileName);
        } else {
            $this->FileName = $fileName;
        }
        return $this;
    }
    /**
     * Get LinkUrlOrPath 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 getLinkUrlOrPath()
    {
        return isset($this->LinkUrlOrPath) ? $this->LinkUrlOrPath : null;
    }
    /**
     * Set LinkUrlOrPath 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 $linkUrlOrPath
     * @return \patest\StructType\BSRO_Sales_FileToUpload
     */
    public function setLinkUrlOrPath($linkUrlOrPath = null)
    {
        // validation for constraint: string
        if (!is_null($linkUrlOrPath) && !is_string($linkUrlOrPath)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($linkUrlOrPath, true), gettype($linkUrlOrPath)), __LINE__);
        }
        if (is_null($linkUrlOrPath) || (is_array($linkUrlOrPath) && empty($linkUrlOrPath))) {
            unset($this->LinkUrlOrPath);
        } else {
            $this->LinkUrlOrPath = $linkUrlOrPath;
        }
        return $this;
    }
}
