<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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