<?php

namespace Mnm;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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