<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Security.ConfigureApplicationFeatures.Request
 * StructType
 * @subpackage Structs
 */
class BizAction_Security_ConfigureApplicationFeatures_Request extends AnyEntity
{
    /**
     * The Features
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfSecurity_ApplicationFeature
     */
    public $Features;
    /**
     * Constructor method for BizAction.Security.ConfigureApplicationFeatures.Request
     * @uses BizAction_Security_ConfigureApplicationFeatures_Request::setFeatures()
     * @param \patest\StructType\RecordSetOfSecurity_ApplicationFeature $features
     */
    public function __construct(\patest\StructType\RecordSetOfSecurity_ApplicationFeature $features = null)
    {
        $this
            ->setFeatures($features);
    }
    /**
     * Get Features 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\StructType\RecordSetOfSecurity_ApplicationFeature|null
     */
    public function getFeatures()
    {
        return isset($this->Features) ? $this->Features : null;
    }
    /**
     * Set Features 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\StructType\RecordSetOfSecurity_ApplicationFeature $features
     * @return \patest\StructType\BizAction_Security_ConfigureApplicationFeatures_Request
     */
    public function setFeatures(\patest\StructType\RecordSetOfSecurity_ApplicationFeature $features = null)
    {
        if (is_null($features) || (is_array($features) && empty($features))) {
            unset($this->Features);
        } else {
            $this->Features = $features;
        }
        return $this;
    }
}
