<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Submit_Recruiting_Agency_Candidate__ResponseType
 * StructType
 * Meta information extracted from the WSDL
 * - documentation: Wrapper element for Submit Recruiting Agency Candidate Response.
 * @subpackage Structs
 */
class Submit_Recruiting_Agency_Candidate__ResponseType extends AbstractStructBase
{
    /**
     * The Recruiting_Agency_Candidate_Event_Reference
     * Meta information extracted from the WSDL
     * - documentation: Reference for Recruiting Agency Candidate Event.
     * - minOccurs: 0
     * @var \StructType\Unique_IdentifierObjectType
     */
    public $Recruiting_Agency_Candidate_Event_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Submit_Recruiting_Agency_Candidate__ResponseType
     * @uses Submit_Recruiting_Agency_Candidate__ResponseType::setRecruiting_Agency_Candidate_Event_Reference()
     * @uses Submit_Recruiting_Agency_Candidate__ResponseType::setVersion()
     * @param \StructType\Unique_IdentifierObjectType $recruiting_Agency_Candidate_Event_Reference
     * @param string $version
     */
    public function __construct(\StructType\Unique_IdentifierObjectType $recruiting_Agency_Candidate_Event_Reference = null, $version = null)
    {
        $this
            ->setRecruiting_Agency_Candidate_Event_Reference($recruiting_Agency_Candidate_Event_Reference)
            ->setVersion($version);
    }
    /**
     * Get Recruiting_Agency_Candidate_Event_Reference value
     * @return \StructType\Unique_IdentifierObjectType|null
     */
    public function getRecruiting_Agency_Candidate_Event_Reference()
    {
        return $this->Recruiting_Agency_Candidate_Event_Reference;
    }
    /**
     * Set Recruiting_Agency_Candidate_Event_Reference value
     * @param \StructType\Unique_IdentifierObjectType $recruiting_Agency_Candidate_Event_Reference
     * @return \StructType\Submit_Recruiting_Agency_Candidate__ResponseType
     */
    public function setRecruiting_Agency_Candidate_Event_Reference(\StructType\Unique_IdentifierObjectType $recruiting_Agency_Candidate_Event_Reference = null)
    {
        $this->Recruiting_Agency_Candidate_Event_Reference = $recruiting_Agency_Candidate_Event_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Submit_Recruiting_Agency_Candidate__ResponseType
     */
    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;
    }
}
