<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Edit_Position_Restrictions_RequestType StructType
 * Meta information extracted from the WSDL
 * - documentation: Wrapper element for Edit Position Restrictions Web Service.
 * @subpackage Structs
 */
class Edit_Position_Restrictions_RequestType extends AbstractStructBase
{
    /**
     * The Business_Process_Parameters
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\Business_Process_ParametersType
     */
    public $Business_Process_Parameters;
    /**
     * The Edit_Position_Restrictions_Data
     * @var \StructType\Edit_Position_Restrictions_DataType
     */
    public $Edit_Position_Restrictions_Data;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Edit_Position_Restrictions_RequestType
     * @uses Edit_Position_Restrictions_RequestType::setBusiness_Process_Parameters()
     * @uses Edit_Position_Restrictions_RequestType::setEdit_Position_Restrictions_Data()
     * @uses Edit_Position_Restrictions_RequestType::setVersion()
     * @param \StructType\Business_Process_ParametersType $business_Process_Parameters
     * @param \StructType\Edit_Position_Restrictions_DataType $edit_Position_Restrictions_Data
     * @param string $version
     */
    public function __construct(\StructType\Business_Process_ParametersType $business_Process_Parameters = null, \StructType\Edit_Position_Restrictions_DataType $edit_Position_Restrictions_Data = null, $version = null)
    {
        $this
            ->setBusiness_Process_Parameters($business_Process_Parameters)
            ->setEdit_Position_Restrictions_Data($edit_Position_Restrictions_Data)
            ->setVersion($version);
    }
    /**
     * Get Business_Process_Parameters value
     * @return \StructType\Business_Process_ParametersType|null
     */
    public function getBusiness_Process_Parameters()
    {
        return $this->Business_Process_Parameters;
    }
    /**
     * Set Business_Process_Parameters value
     * @param \StructType\Business_Process_ParametersType $business_Process_Parameters
     * @return \StructType\Edit_Position_Restrictions_RequestType
     */
    public function setBusiness_Process_Parameters(\StructType\Business_Process_ParametersType $business_Process_Parameters = null)
    {
        $this->Business_Process_Parameters = $business_Process_Parameters;
        return $this;
    }
    /**
     * Get Edit_Position_Restrictions_Data value
     * @return \StructType\Edit_Position_Restrictions_DataType|null
     */
    public function getEdit_Position_Restrictions_Data()
    {
        return $this->Edit_Position_Restrictions_Data;
    }
    /**
     * Set Edit_Position_Restrictions_Data value
     * @param \StructType\Edit_Position_Restrictions_DataType $edit_Position_Restrictions_Data
     * @return \StructType\Edit_Position_Restrictions_RequestType
     */
    public function setEdit_Position_Restrictions_Data(\StructType\Edit_Position_Restrictions_DataType $edit_Position_Restrictions_Data = null)
    {
        $this->Edit_Position_Restrictions_Data = $edit_Position_Restrictions_Data;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Edit_Position_Restrictions_RequestType
     */
    public function setVersion($version = null)
    {
        // validation for constraint: string
        if (!is_null($version) && !is_string($version)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($version, true), gettype($version)), __LINE__);
        }
        $this->version = $version;
        return $this;
    }
}
