<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.BizResource.SendDocuments.Recipient StructType
 * @subpackage Structs
 */
class BizAction_BizResource_SendDocuments_Recipient extends AnyEntity
{
    /**
     * The Description
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Description;
    /**
     * The Email
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Email;
    /**
     * The IsFixed
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var bool
     */
    public $IsFixed;
    /**
     * The IsSelected
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var bool
     */
    public $IsSelected;
    /**
     * The IsValidIcon
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $IsValidIcon;
    /**
     * Constructor method for BizAction.BizResource.SendDocuments.Recipient
     * @uses BizAction_BizResource_SendDocuments_Recipient::setDescription()
     * @uses BizAction_BizResource_SendDocuments_Recipient::setEmail()
     * @uses BizAction_BizResource_SendDocuments_Recipient::setIsFixed()
     * @uses BizAction_BizResource_SendDocuments_Recipient::setIsSelected()
     * @uses BizAction_BizResource_SendDocuments_Recipient::setIsValidIcon()
     * @param string $description
     * @param string $email
     * @param bool $isFixed
     * @param bool $isSelected
     * @param string $isValidIcon
     */
    public function __construct($description = null, $email = null, $isFixed = null, $isSelected = null, $isValidIcon = null)
    {
        $this
            ->setDescription($description)
            ->setEmail($email)
            ->setIsFixed($isFixed)
            ->setIsSelected($isSelected)
            ->setIsValidIcon($isValidIcon);
    }
    /**
     * 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\BizAction_BizResource_SendDocuments_Recipient
     */
    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 Email 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 getEmail()
    {
        return isset($this->Email) ? $this->Email : null;
    }
    /**
     * Set Email 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 $email
     * @return \patest\StructType\BizAction_BizResource_SendDocuments_Recipient
     */
    public function setEmail($email = null)
    {
        // validation for constraint: string
        if (!is_null($email) && !is_string($email)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($email, true), gettype($email)), __LINE__);
        }
        if (is_null($email) || (is_array($email) && empty($email))) {
            unset($this->Email);
        } else {
            $this->Email = $email;
        }
        return $this;
    }
    /**
     * Get IsFixed 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 bool|null
     */
    public function getIsFixed()
    {
        return isset($this->IsFixed) ? $this->IsFixed : null;
    }
    /**
     * Set IsFixed 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 bool $isFixed
     * @return \patest\StructType\BizAction_BizResource_SendDocuments_Recipient
     */
    public function setIsFixed($isFixed = null)
    {
        // validation for constraint: boolean
        if (!is_null($isFixed) && !is_bool($isFixed)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isFixed, true), gettype($isFixed)), __LINE__);
        }
        if (is_null($isFixed) || (is_array($isFixed) && empty($isFixed))) {
            unset($this->IsFixed);
        } else {
            $this->IsFixed = $isFixed;
        }
        return $this;
    }
    /**
     * Get IsSelected 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 bool|null
     */
    public function getIsSelected()
    {
        return isset($this->IsSelected) ? $this->IsSelected : null;
    }
    /**
     * Set IsSelected 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 bool $isSelected
     * @return \patest\StructType\BizAction_BizResource_SendDocuments_Recipient
     */
    public function setIsSelected($isSelected = null)
    {
        // validation for constraint: boolean
        if (!is_null($isSelected) && !is_bool($isSelected)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isSelected, true), gettype($isSelected)), __LINE__);
        }
        if (is_null($isSelected) || (is_array($isSelected) && empty($isSelected))) {
            unset($this->IsSelected);
        } else {
            $this->IsSelected = $isSelected;
        }
        return $this;
    }
    /**
     * Get IsValidIcon 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 getIsValidIcon()
    {
        return isset($this->IsValidIcon) ? $this->IsValidIcon : null;
    }
    /**
     * Set IsValidIcon 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 $isValidIcon
     * @return \patest\StructType\BizAction_BizResource_SendDocuments_Recipient
     */
    public function setIsValidIcon($isValidIcon = null)
    {
        // validation for constraint: string
        if (!is_null($isValidIcon) && !is_string($isValidIcon)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($isValidIcon, true), gettype($isValidIcon)), __LINE__);
        }
        if (is_null($isValidIcon) || (is_array($isValidIcon) && empty($isValidIcon))) {
            unset($this->IsValidIcon);
        } else {
            $this->IsValidIcon = $isValidIcon;
        }
        return $this;
    }
}
