<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ResultData StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:ResultData
 * @subpackage Structs
 */
class ResultData extends AbstractStructBase
{
    /**
     * The Parts
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfResultDataPart
     */
    public $Parts;
    /**
     * The Strings
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfintKeyValuePairOfstringstringtwCi8m_S7
     */
    public $Strings;
    /**
     * Constructor method for ResultData
     * @uses ResultData::setParts()
     * @uses ResultData::setStrings()
     * @param \patest\ArrayType\ArrayOfResultDataPart $parts
     * @param \patest\ArrayType\ArrayOfKeyValueOfintKeyValuePairOfstringstringtwCi8m_S7 $strings
     */
    public function __construct(\patest\ArrayType\ArrayOfResultDataPart $parts = null, \patest\ArrayType\ArrayOfKeyValueOfintKeyValuePairOfstringstringtwCi8m_S7 $strings = null)
    {
        $this
            ->setParts($parts)
            ->setStrings($strings);
    }
    /**
     * Get Parts 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\ArrayOfResultDataPart|null
     */
    public function getParts()
    {
        return isset($this->Parts) ? $this->Parts : null;
    }
    /**
     * Set Parts 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\ArrayOfResultDataPart $parts
     * @return \patest\StructType\ResultData
     */
    public function setParts(\patest\ArrayType\ArrayOfResultDataPart $parts = null)
    {
        if (is_null($parts) || (is_array($parts) && empty($parts))) {
            unset($this->Parts);
        } else {
            $this->Parts = $parts;
        }
        return $this;
    }
    /**
     * Get Strings 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\ArrayOfKeyValueOfintKeyValuePairOfstringstringtwCi8m_S7|null
     */
    public function getStrings()
    {
        return isset($this->Strings) ? $this->Strings : null;
    }
    /**
     * Set Strings 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\ArrayOfKeyValueOfintKeyValuePairOfstringstringtwCi8m_S7 $strings
     * @return \patest\StructType\ResultData
     */
    public function setStrings(\patest\ArrayType\ArrayOfKeyValueOfintKeyValuePairOfstringstringtwCi8m_S7 $strings = null)
    {
        if (is_null($strings) || (is_array($strings) && empty($strings))) {
            unset($this->Strings);
        } else {
            $this->Strings = $strings;
        }
        return $this;
    }
}
