<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SerializedBizActionData StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:SerializedBizActionData
 * @subpackage Structs
 */
class SerializedBizActionData extends AbstractStructBase
{
    /**
     * The Contract
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\SerializedObject
     */
    public $Contract;
    /**
     * The Entity
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\AnyEntity
     */
    public $Entity;
    /**
     * The Parameters
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\SerializedDefinitionNode
     */
    public $Parameters;
    /**
     * Constructor method for SerializedBizActionData
     * @uses SerializedBizActionData::setContract()
     * @uses SerializedBizActionData::setEntity()
     * @uses SerializedBizActionData::setParameters()
     * @param \patest\StructType\SerializedObject $contract
     * @param \patest\StructType\AnyEntity $entity
     * @param \patest\StructType\SerializedDefinitionNode $parameters
     */
    public function __construct(\patest\StructType\SerializedObject $contract = null, \patest\StructType\AnyEntity $entity = null, \patest\StructType\SerializedDefinitionNode $parameters = null)
    {
        $this
            ->setContract($contract)
            ->setEntity($entity)
            ->setParameters($parameters);
    }
    /**
     * Get Contract 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\SerializedObject|null
     */
    public function getContract()
    {
        return isset($this->Contract) ? $this->Contract : null;
    }
    /**
     * Set Contract 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\SerializedObject $contract
     * @return \patest\StructType\SerializedBizActionData
     */
    public function setContract(\patest\StructType\SerializedObject $contract = null)
    {
        if (is_null($contract) || (is_array($contract) && empty($contract))) {
            unset($this->Contract);
        } else {
            $this->Contract = $contract;
        }
        return $this;
    }
    /**
     * Get Entity 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\AnyEntity|null
     */
    public function getEntity()
    {
        return isset($this->Entity) ? $this->Entity : null;
    }
    /**
     * Set Entity 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\AnyEntity $entity
     * @return \patest\StructType\SerializedBizActionData
     */
    public function setEntity(\patest\StructType\AnyEntity $entity = null)
    {
        if (is_null($entity) || (is_array($entity) && empty($entity))) {
            unset($this->Entity);
        } else {
            $this->Entity = $entity;
        }
        return $this;
    }
    /**
     * Get Parameters 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\SerializedDefinitionNode|null
     */
    public function getParameters()
    {
        return isset($this->Parameters) ? $this->Parameters : null;
    }
    /**
     * Set Parameters 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\SerializedDefinitionNode $parameters
     * @return \patest\StructType\SerializedBizActionData
     */
    public function setParameters(\patest\StructType\SerializedDefinitionNode $parameters = null)
    {
        if (is_null($parameters) || (is_array($parameters) && empty($parameters))) {
            unset($this->Parameters);
        } else {
            $this->Parameters = $parameters;
        }
        return $this;
    }
}
