<?php

namespace Mnm;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetInvoiceEnvelope StructType
 * @subpackage Structs
 */
class GetInvoiceEnvelope extends AbstractStructBase
{
    /**
     * The isInbox
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $isInbox;
    /**
     * The userInfo
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \Mnm\UserInformation
     */
    public $userInfo;
    /**
     * The invoiceId
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $invoiceId;
    /**
     * Constructor method for GetInvoiceEnvelope
     * @uses GetInvoiceEnvelope::setIsInbox()
     * @uses GetInvoiceEnvelope::setUserInfo()
     * @uses GetInvoiceEnvelope::setInvoiceId()
     * @param bool $isInbox
     * @param \Mnm\UserInformation $userInfo
     * @param string $invoiceId
     */
    public function __construct($isInbox = null, \Mnm\UserInformation $userInfo = null, $invoiceId = null)
    {
        $this
            ->setIsInbox($isInbox)
            ->setUserInfo($userInfo)
            ->setInvoiceId($invoiceId);
    }
    /**
     * Get isInbox value
     * @return bool
     */
    public function getIsInbox()
    {
        return $this->isInbox;
    }
    /**
     * Set isInbox value
     * @param bool $isInbox
     * @return \Mnm\GetInvoiceEnvelope
     */
    public function setIsInbox($isInbox = null)
    {
        $this->isInbox = $isInbox;
        return $this;
    }
    /**
     * Get userInfo value
     * @return \Mnm\UserInformation|null
     */
    public function getUserInfo()
    {
        return $this->userInfo;
    }
    /**
     * Set userInfo value
     * @param \Mnm\UserInformation $userInfo
     * @return \Mnm\GetInvoiceEnvelope
     */
    public function setUserInfo(\Mnm\UserInformation $userInfo = null)
    {
        $this->userInfo = $userInfo;
        return $this;
    }
    /**
     * Get invoiceId value
     * @return string|null
     */
    public function getInvoiceId()
    {
        return $this->invoiceId;
    }
    /**
     * Set invoiceId value
     * @param string $invoiceId
     * @return \Mnm\GetInvoiceEnvelope
     */
    public function setInvoiceId($invoiceId = null)
    {
        $this->invoiceId = $invoiceId;
        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 \Mnm\GetInvoiceEnvelope
     */
    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__;
    }
}
