<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for HelpDesk.ServiceRequestNotificationPlaceHolder StructType
 * @subpackage Structs
 */
class HelpDesk_ServiceRequestNotificationPlaceHolder extends AnyEntity
{
    /**
     * The Description
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Description;
    /**
     * The MatchingProperty
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $MatchingProperty;
    /**
     * The Name
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Name;
    /**
     * Constructor method for HelpDesk.ServiceRequestNotificationPlaceHolder
     * @uses HelpDesk_ServiceRequestNotificationPlaceHolder::setDescription()
     * @uses HelpDesk_ServiceRequestNotificationPlaceHolder::setMatchingProperty()
     * @uses HelpDesk_ServiceRequestNotificationPlaceHolder::setName()
     * @param string $description
     * @param string $matchingProperty
     * @param string $name
     */
    public function __construct($description = null, $matchingProperty = null, $name = null)
    {
        $this
            ->setDescription($description)
            ->setMatchingProperty($matchingProperty)
            ->setName($name);
    }
    /**
     * Get Description 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 getDescription()
    {
        return isset($this->Description) ? $this->Description : null;
    }
    /**
     * Set Description 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 $description
     * @return \patest\StructType\HelpDesk_ServiceRequestNotificationPlaceHolder
     */
    public function setDescription($description = null)
    {
        // validation for constraint: string
        if (!is_null($description) && !is_string($description)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($description, true), gettype($description)), __LINE__);
        }
        if (is_null($description) || (is_array($description) && empty($description))) {
            unset($this->Description);
        } else {
            $this->Description = $description;
        }
        return $this;
    }
    /**
     * Get MatchingProperty 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 getMatchingProperty()
    {
        return isset($this->MatchingProperty) ? $this->MatchingProperty : null;
    }
    /**
     * Set MatchingProperty 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 $matchingProperty
     * @return \patest\StructType\HelpDesk_ServiceRequestNotificationPlaceHolder
     */
    public function setMatchingProperty($matchingProperty = null)
    {
        // validation for constraint: string
        if (!is_null($matchingProperty) && !is_string($matchingProperty)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($matchingProperty, true), gettype($matchingProperty)), __LINE__);
        }
        if (is_null($matchingProperty) || (is_array($matchingProperty) && empty($matchingProperty))) {
            unset($this->MatchingProperty);
        } else {
            $this->MatchingProperty = $matchingProperty;
        }
        return $this;
    }
    /**
     * Get Name 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 getName()
    {
        return isset($this->Name) ? $this->Name : null;
    }
    /**
     * Set Name 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 $name
     * @return \patest\StructType\HelpDesk_ServiceRequestNotificationPlaceHolder
     */
    public function setName($name = null)
    {
        // validation for constraint: string
        if (!is_null($name) && !is_string($name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__);
        }
        if (is_null($name) || (is_array($name) && empty($name))) {
            unset($this->Name);
        } else {
            $this->Name = $name;
        }
        return $this;
    }
}
