<?php

namespace Mnm;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CloneInvoiceServiceResponse StructType
 * @subpackage Structs
 */
class CloneInvoiceServiceResponse extends Response
{
    /**
     * The Value
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \Mnm\ClonedInvoiceInfo[]
     */
    public $Value;
    /**
     * Constructor method for CloneInvoiceServiceResponse
     * @uses CloneInvoiceServiceResponse::setValue()
     * @param \Mnm\ClonedInvoiceInfo[] $value
     */
    public function __construct(array $value = array())
    {
        $this
            ->setValue($value);
    }
    /**
     * Get Value value
     * @return \Mnm\ClonedInvoiceInfo[]|null
     */
    public function getValue()
    {
        return $this->Value;
    }
    /**
     * Set Value value
     * @param \Mnm\ClonedInvoiceInfo[] $value
     * @return \Mnm\CloneInvoiceServiceResponse
     */
    public function setValue(array $value = array())
    {
        $this->Value = $value;
        return $this;
    }
    /**
     * Add item to Value value
     * @throws \InvalidArgumentException
     * @param \Mnm\ClonedInvoiceInfo $item
     * @return \Mnm\CloneInvoiceServiceResponse
     */
    public function addToValue(\Mnm\ClonedInvoiceInfo $item)
    {
        $this->Value[] = $item;
        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\CloneInvoiceServiceResponse
     */
    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__;
    }
}
