<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for bSRO.Sales.AssignEventGuidesAndSkills StructType
 * @subpackage Structs
 */
class BSRO_Sales_AssignEventGuidesAndSkills extends AnyEntity
{
    /**
     * The EndDate
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $EndDate;
    /**
     * The Guides
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Guides
     */
    public $Guides;
    /**
     * The RequiredSkills
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $RequiredSkills;
    /**
     * The Skills
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Skills
     */
    public $Skills;
    /**
     * The StartDate
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $StartDate;
    /**
     * Constructor method for bSRO.Sales.AssignEventGuidesAndSkills
     * @uses BSRO_Sales_AssignEventGuidesAndSkills::setEndDate()
     * @uses BSRO_Sales_AssignEventGuidesAndSkills::setGuides()
     * @uses BSRO_Sales_AssignEventGuidesAndSkills::setRequiredSkills()
     * @uses BSRO_Sales_AssignEventGuidesAndSkills::setSkills()
     * @uses BSRO_Sales_AssignEventGuidesAndSkills::setStartDate()
     * @param string $endDate
     * @param \patest\StructType\Guides $guides
     * @param string $requiredSkills
     * @param \patest\StructType\Skills $skills
     * @param string $startDate
     */
    public function __construct($endDate = null, \patest\StructType\Guides $guides = null, $requiredSkills = null, \patest\StructType\Skills $skills = null, $startDate = null)
    {
        $this
            ->setEndDate($endDate)
            ->setGuides($guides)
            ->setRequiredSkills($requiredSkills)
            ->setSkills($skills)
            ->setStartDate($startDate);
    }
    /**
     * Get EndDate 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 getEndDate()
    {
        return isset($this->EndDate) ? $this->EndDate : null;
    }
    /**
     * Set EndDate 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 $endDate
     * @return \patest\StructType\BSRO_Sales_AssignEventGuidesAndSkills
     */
    public function setEndDate($endDate = null)
    {
        // validation for constraint: string
        if (!is_null($endDate) && !is_string($endDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($endDate, true), gettype($endDate)), __LINE__);
        }
        if (is_null($endDate) || (is_array($endDate) && empty($endDate))) {
            unset($this->EndDate);
        } else {
            $this->EndDate = $endDate;
        }
        return $this;
    }
    /**
     * Get Guides 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 \patest\StructType\Guides|null
     */
    public function getGuides()
    {
        return isset($this->Guides) ? $this->Guides : null;
    }
    /**
     * Set Guides 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 \patest\StructType\Guides $guides
     * @return \patest\StructType\BSRO_Sales_AssignEventGuidesAndSkills
     */
    public function setGuides(\patest\StructType\Guides $guides = null)
    {
        if (is_null($guides) || (is_array($guides) && empty($guides))) {
            unset($this->Guides);
        } else {
            $this->Guides = $guides;
        }
        return $this;
    }
    /**
     * Get RequiredSkills 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 getRequiredSkills()
    {
        return isset($this->RequiredSkills) ? $this->RequiredSkills : null;
    }
    /**
     * Set RequiredSkills 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 $requiredSkills
     * @return \patest\StructType\BSRO_Sales_AssignEventGuidesAndSkills
     */
    public function setRequiredSkills($requiredSkills = null)
    {
        // validation for constraint: string
        if (!is_null($requiredSkills) && !is_string($requiredSkills)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($requiredSkills, true), gettype($requiredSkills)), __LINE__);
        }
        if (is_null($requiredSkills) || (is_array($requiredSkills) && empty($requiredSkills))) {
            unset($this->RequiredSkills);
        } else {
            $this->RequiredSkills = $requiredSkills;
        }
        return $this;
    }
    /**
     * Get Skills 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 \patest\StructType\Skills|null
     */
    public function getSkills()
    {
        return isset($this->Skills) ? $this->Skills : null;
    }
    /**
     * Set Skills 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 \patest\StructType\Skills $skills
     * @return \patest\StructType\BSRO_Sales_AssignEventGuidesAndSkills
     */
    public function setSkills(\patest\StructType\Skills $skills = null)
    {
        if (is_null($skills) || (is_array($skills) && empty($skills))) {
            unset($this->Skills);
        } else {
            $this->Skills = $skills;
        }
        return $this;
    }
    /**
     * Get StartDate 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 getStartDate()
    {
        return isset($this->StartDate) ? $this->StartDate : null;
    }
    /**
     * Set StartDate 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 $startDate
     * @return \patest\StructType\BSRO_Sales_AssignEventGuidesAndSkills
     */
    public function setStartDate($startDate = null)
    {
        // validation for constraint: string
        if (!is_null($startDate) && !is_string($startDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($startDate, true), gettype($startDate)), __LINE__);
        }
        if (is_null($startDate) || (is_array($startDate) && empty($startDate))) {
            unset($this->StartDate);
        } else {
            $this->StartDate = $startDate;
        }
        return $this;
    }
}
