<?php

namespace Mnm;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for InboxInvoiceQueryModel StructType
 * @subpackage Structs
 */
class InboxInvoiceQueryModel extends InvoiceQueryModel
{
    /**
     * The SetTaken
     * Meta information extracted from the WSDL
     * - use: required
     * @var bool
     */
    public $SetTaken;
    /**
     * The OnlyNewestInvoices
     * Meta information extracted from the WSDL
     * - use: required
     * @var bool
     */
    public $OnlyNewestInvoices;
    /**
     * Constructor method for InboxInvoiceQueryModel
     * @uses InboxInvoiceQueryModel::setSetTaken()
     * @uses InboxInvoiceQueryModel::setOnlyNewestInvoices()
     * @param bool $setTaken
     * @param bool $onlyNewestInvoices
     */
    public function __construct($setTaken = null, $onlyNewestInvoices = null)
    {
        $this
            ->setSetTaken($setTaken)
            ->setOnlyNewestInvoices($onlyNewestInvoices);
    }
    /**
     * Get SetTaken value
     * @return bool
     */
    public function getSetTaken()
    {
        return $this->SetTaken;
    }
    /**
     * Set SetTaken value
     * @param bool $setTaken
     * @return \Mnm\InboxInvoiceQueryModel
     */
    public function setSetTaken($setTaken = null)
    {
        $this->SetTaken = $setTaken;
        return $this;
    }
    /**
     * Get OnlyNewestInvoices value
     * @return bool
     */
    public function getOnlyNewestInvoices()
    {
        return $this->OnlyNewestInvoices;
    }
    /**
     * Set OnlyNewestInvoices value
     * @param bool $onlyNewestInvoices
     * @return \Mnm\InboxInvoiceQueryModel
     */
    public function setOnlyNewestInvoices($onlyNewestInvoices = null)
    {
        $this->OnlyNewestInvoices = $onlyNewestInvoices;
        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\InboxInvoiceQueryModel
     */
    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__;
    }
}
