<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ParamDeleteAttachment StructType
 * @subpackage Structs
 */
class ParamDeleteAttachment extends ParamBase
{
    /**
     * The draftId
     * @var int
     */
    public $draftId;
    /**
     * The attId
     * @var string
     */
    public $attId;
    /**
     * Constructor method for ParamDeleteAttachment
     * @uses ParamDeleteAttachment::setDraftId()
     * @uses ParamDeleteAttachment::setAttId()
     * @param int $draftId
     * @param string $attId
     */
    public function __construct($draftId = null, $attId = null)
    {
        $this
            ->setDraftId($draftId)
            ->setAttId($attId);
    }
    /**
     * Get draftId value
     * @return int|null
     */
    public function getDraftId()
    {
        return $this->draftId;
    }
    /**
     * Set draftId value
     * @param int $draftId
     * @return ParamDeleteAttachment
     */
    public function setDraftId($draftId = null)
    {
        // validation for constraint: int
        if (!is_null($draftId) && !is_numeric($draftId)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($draftId)), __LINE__);
        }
        $this->draftId = $draftId;
        return $this;
    }
    /**
     * Get attId value
     * @return string|null
     */
    public function getAttId()
    {
        return $this->attId;
    }
    /**
     * Set attId value
     * @param string $attId
     * @return ParamDeleteAttachment
     */
    public function setAttId($attId = null)
    {
        // validation for constraint: string
        if (!is_null($attId) && !is_string($attId)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($attId)), __LINE__);
        }
        $this->attId = $attId;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return ParamDeleteAttachment
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
