<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for EsqlStatementArguments StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:EsqlStatementArguments
 * @subpackage Structs
 */
class EsqlStatementArguments extends AbstractStructBase
{
    /**
     * The SerializedValue
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfstringArrayOfKeyValueOfstringanyTypety7Ep6D1
     */
    public $SerializedValue;
    /**
     * Constructor method for EsqlStatementArguments
     * @uses EsqlStatementArguments::setSerializedValue()
     * @param \patest\ArrayType\ArrayOfKeyValueOfstringArrayOfKeyValueOfstringanyTypety7Ep6D1 $serializedValue
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfstringArrayOfKeyValueOfstringanyTypety7Ep6D1 $serializedValue = null)
    {
        $this
            ->setSerializedValue($serializedValue);
    }
    /**
     * Get SerializedValue 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\ArrayOfKeyValueOfstringArrayOfKeyValueOfstringanyTypety7Ep6D1|null
     */
    public function getSerializedValue()
    {
        return isset($this->SerializedValue) ? $this->SerializedValue : null;
    }
    /**
     * Set SerializedValue 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\ArrayOfKeyValueOfstringArrayOfKeyValueOfstringanyTypety7Ep6D1 $serializedValue
     * @return \patest\StructType\EsqlStatementArguments
     */
    public function setSerializedValue(\patest\ArrayType\ArrayOfKeyValueOfstringArrayOfKeyValueOfstringanyTypety7Ep6D1 $serializedValue = null)
    {
        if (is_null($serializedValue) || (is_array($serializedValue) && empty($serializedValue))) {
            unset($this->SerializedValue);
        } else {
            $this->SerializedValue = $serializedValue;
        }
        return $this;
    }
}
