<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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