<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for InstanceIdentifier StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:InstanceIdentifier
 * @subpackage Structs
 */
class InstanceIdentifier extends AbstractStructBase
{
    /**
     * The Description1
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Description1;
    /**
     * The Description2
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Description2;
    /**
     * The Description3
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Description3;
    /**
     * The Name1
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Name1;
    /**
     * The Name2
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Name2;
    /**
     * The Name3
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Name3;
    /**
     * Constructor method for InstanceIdentifier
     * @uses InstanceIdentifier::setDescription1()
     * @uses InstanceIdentifier::setDescription2()
     * @uses InstanceIdentifier::setDescription3()
     * @uses InstanceIdentifier::setName1()
     * @uses InstanceIdentifier::setName2()
     * @uses InstanceIdentifier::setName3()
     * @param string $description1
     * @param string $description2
     * @param string $description3
     * @param string $name1
     * @param string $name2
     * @param string $name3
     */
    public function __construct($description1 = null, $description2 = null, $description3 = null, $name1 = null, $name2 = null, $name3 = null)
    {
        $this
            ->setDescription1($description1)
            ->setDescription2($description2)
            ->setDescription3($description3)
            ->setName1($name1)
            ->setName2($name2)
            ->setName3($name3);
    }
    /**
     * Get Description1 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 getDescription1()
    {
        return isset($this->Description1) ? $this->Description1 : null;
    }
    /**
     * Set Description1 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 $description1
     * @return \patest\StructType\InstanceIdentifier
     */
    public function setDescription1($description1 = null)
    {
        // validation for constraint: string
        if (!is_null($description1) && !is_string($description1)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($description1, true), gettype($description1)), __LINE__);
        }
        if (is_null($description1) || (is_array($description1) && empty($description1))) {
            unset($this->Description1);
        } else {
            $this->Description1 = $description1;
        }
        return $this;
    }
    /**
     * Get Description2 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 getDescription2()
    {
        return isset($this->Description2) ? $this->Description2 : null;
    }
    /**
     * Set Description2 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 $description2
     * @return \patest\StructType\InstanceIdentifier
     */
    public function setDescription2($description2 = null)
    {
        // validation for constraint: string
        if (!is_null($description2) && !is_string($description2)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($description2, true), gettype($description2)), __LINE__);
        }
        if (is_null($description2) || (is_array($description2) && empty($description2))) {
            unset($this->Description2);
        } else {
            $this->Description2 = $description2;
        }
        return $this;
    }
    /**
     * Get Description3 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 getDescription3()
    {
        return isset($this->Description3) ? $this->Description3 : null;
    }
    /**
     * Set Description3 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 $description3
     * @return \patest\StructType\InstanceIdentifier
     */
    public function setDescription3($description3 = null)
    {
        // validation for constraint: string
        if (!is_null($description3) && !is_string($description3)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($description3, true), gettype($description3)), __LINE__);
        }
        if (is_null($description3) || (is_array($description3) && empty($description3))) {
            unset($this->Description3);
        } else {
            $this->Description3 = $description3;
        }
        return $this;
    }
    /**
     * Get Name1 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 getName1()
    {
        return isset($this->Name1) ? $this->Name1 : null;
    }
    /**
     * Set Name1 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 $name1
     * @return \patest\StructType\InstanceIdentifier
     */
    public function setName1($name1 = null)
    {
        // validation for constraint: string
        if (!is_null($name1) && !is_string($name1)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name1, true), gettype($name1)), __LINE__);
        }
        if (is_null($name1) || (is_array($name1) && empty($name1))) {
            unset($this->Name1);
        } else {
            $this->Name1 = $name1;
        }
        return $this;
    }
    /**
     * Get Name2 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 getName2()
    {
        return isset($this->Name2) ? $this->Name2 : null;
    }
    /**
     * Set Name2 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 $name2
     * @return \patest\StructType\InstanceIdentifier
     */
    public function setName2($name2 = null)
    {
        // validation for constraint: string
        if (!is_null($name2) && !is_string($name2)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name2, true), gettype($name2)), __LINE__);
        }
        if (is_null($name2) || (is_array($name2) && empty($name2))) {
            unset($this->Name2);
        } else {
            $this->Name2 = $name2;
        }
        return $this;
    }
    /**
     * Get Name3 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 getName3()
    {
        return isset($this->Name3) ? $this->Name3 : null;
    }
    /**
     * Set Name3 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 $name3
     * @return \patest\StructType\InstanceIdentifier
     */
    public function setName3($name3 = null)
    {
        // validation for constraint: string
        if (!is_null($name3) && !is_string($name3)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name3, true), gettype($name3)), __LINE__);
        }
        if (is_null($name3) || (is_array($name3) && empty($name3))) {
            unset($this->Name3);
        } else {
            $this->Name3 = $name3;
        }
        return $this;
    }
}
