<?php

namespace App\Integration\Providers\Alliance3\DTO;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ExcelDictionaryCodes DTO
 * @subpackage Structs
 */
class ExcelDictionaryCodes extends AbstractStructBase
{
    /**
     * The Code
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var string[]
     */
    public $Code;
    /**
     * Constructor method for ExcelDictionaryCodes
     * @uses ExcelDictionaryCodes::setCode()
     * @param string[] $code
     */
    public function __construct(array $code = array())
    {
        $this
            ->setCode($code);
    }
    /**
     * Get Code value
     * @return string[]|null
     */
    public function getCode()
    {
        return $this->Code;
    }
    /**
     * Set Code value
     * @param string[] $code
     * @return \App\Integration\Providers\Alliance3\DTO\ExcelDictionaryCodes
     */
    public function setCode(array $code = array())
    {
        $this->Code = $code;
        return $this;
    }
    /**
     * Add item to Code value
     * @throws \InvalidArgumentException
     * @param string $item
     * @return \App\Integration\Providers\Alliance3\DTO\ExcelDictionaryCodes
     */
    public function addToCode($item)
    {
        $this->Code[] = $item;
        return $this;
    }
}
