<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ResultIssueNotification StructType
 * @subpackage Structs
 */
class ResultIssueNotification extends AbstractStructBase
{
    /**
     * The notificationId
     * Meta informations extracted from the WSDL
     * - nillable: true
     * @var int
     */
    public $notificationId;
    /**
     * Constructor method for ResultIssueNotification
     * @uses ResultIssueNotification::setNotificationId()
     * @param int $notificationId
     */
    public function __construct($notificationId = null)
    {
        $this
            ->setNotificationId($notificationId);
    }
    /**
     * Get notificationId value
     * @return int|null
     */
    public function getNotificationId()
    {
        return $this->notificationId;
    }
    /**
     * Set notificationId value
     * @param int $notificationId
     * @return ResultIssueNotification
     */
    public function setNotificationId($notificationId = null)
    {
        // validation for constraint: int
        if (!is_null($notificationId) && !is_numeric($notificationId)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($notificationId)), __LINE__);
        }
        $this->notificationId = $notificationId;
        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 ResultIssueNotification
     */
    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__;
    }
}
