<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Refer_a_Candidate_RequestType StructType
 * Meta information extracted from the WSDL
 * - documentation: Contains all the data for a Referral Candidate.
 * @subpackage Structs
 */
class Refer_a_Candidate_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 Referral_Candidate_Submission_Data
     * @var \StructType\Referral_Candidate_Submission_DataType
     */
    public $Referral_Candidate_Submission_Data;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Refer_a_Candidate_RequestType
     * @uses Refer_a_Candidate_RequestType::setBusiness_Process_Parameters()
     * @uses Refer_a_Candidate_RequestType::setReferral_Candidate_Submission_Data()
     * @uses Refer_a_Candidate_RequestType::setVersion()
     * @param \StructType\Business_Process_ParametersType $business_Process_Parameters
     * @param \StructType\Referral_Candidate_Submission_DataType $referral_Candidate_Submission_Data
     * @param string $version
     */
    public function __construct(\StructType\Business_Process_ParametersType $business_Process_Parameters = null, \StructType\Referral_Candidate_Submission_DataType $referral_Candidate_Submission_Data = null, $version = null)
    {
        $this
            ->setBusiness_Process_Parameters($business_Process_Parameters)
            ->setReferral_Candidate_Submission_Data($referral_Candidate_Submission_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\Refer_a_Candidate_RequestType
     */
    public function setBusiness_Process_Parameters(\StructType\Business_Process_ParametersType $business_Process_Parameters = null)
    {
        $this->Business_Process_Parameters = $business_Process_Parameters;
        return $this;
    }
    /**
     * Get Referral_Candidate_Submission_Data value
     * @return \StructType\Referral_Candidate_Submission_DataType|null
     */
    public function getReferral_Candidate_Submission_Data()
    {
        return $this->Referral_Candidate_Submission_Data;
    }
    /**
     * Set Referral_Candidate_Submission_Data value
     * @param \StructType\Referral_Candidate_Submission_DataType $referral_Candidate_Submission_Data
     * @return \StructType\Refer_a_Candidate_RequestType
     */
    public function setReferral_Candidate_Submission_Data(\StructType\Referral_Candidate_Submission_DataType $referral_Candidate_Submission_Data = null)
    {
        $this->Referral_Candidate_Submission_Data = $referral_Candidate_Submission_Data;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Refer_a_Candidate_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;
    }
}
