<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for DeactivateAccessCode-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:DeactivateAccessCode-Response
 * @subpackage Structs
 */
class DeactivateAccessCode_Response extends AbstractStructBase
{
    /**
     * The NonExistingCodeTexts
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfstring
     */
    public $NonExistingCodeTexts;
    /**
     * Constructor method for DeactivateAccessCode-Response
     * @uses DeactivateAccessCode_Response::setNonExistingCodeTexts()
     * @param \patest\ArrayType\ArrayOfstring $nonExistingCodeTexts
     */
    public function __construct(\patest\ArrayType\ArrayOfstring $nonExistingCodeTexts = null)
    {
        $this
            ->setNonExistingCodeTexts($nonExistingCodeTexts);
    }
    /**
     * Get NonExistingCodeTexts value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\ArrayType\ArrayOfstring|null
     */
    public function getNonExistingCodeTexts()
    {
        return isset($this->NonExistingCodeTexts) ? $this->NonExistingCodeTexts : null;
    }
    /**
     * Set NonExistingCodeTexts value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\ArrayType\ArrayOfstring $nonExistingCodeTexts
     * @return \patest\StructType\DeactivateAccessCode_Response
     */
    public function setNonExistingCodeTexts(\patest\ArrayType\ArrayOfstring $nonExistingCodeTexts = null)
    {
        if (is_null($nonExistingCodeTexts) || (is_array($nonExistingCodeTexts) && empty($nonExistingCodeTexts))) {
            unset($this->NonExistingCodeTexts);
        } else {
            $this->NonExistingCodeTexts = $nonExistingCodeTexts;
        }
        return $this;
    }
}
