<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Put_Masked_Job_Requisition_Default_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Masked Job Requisition Default row created or modified by the web service.
 * @subpackage Structs
 */
class Put_Masked_Job_Requisition_Default_ResponseType extends AbstractStructBase
{
    /**
     * The Job_Requisition_Masking_Rule_Configuration_Reference
     * Meta information extracted from the WSDL
     * - documentation: Masked Job Requisition Default row created or modified by the web service.
     * - minOccurs: 0
     * @var \StructType\Job_Requisition_Masking_Rule_Configuration_SingletonObjectType
     */
    public $Job_Requisition_Masking_Rule_Configuration_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Put_Masked_Job_Requisition_Default_ResponseType
     * @uses Put_Masked_Job_Requisition_Default_ResponseType::setJob_Requisition_Masking_Rule_Configuration_Reference()
     * @uses Put_Masked_Job_Requisition_Default_ResponseType::setVersion()
     * @param \StructType\Job_Requisition_Masking_Rule_Configuration_SingletonObjectType $job_Requisition_Masking_Rule_Configuration_Reference
     * @param string $version
     */
    public function __construct(\StructType\Job_Requisition_Masking_Rule_Configuration_SingletonObjectType $job_Requisition_Masking_Rule_Configuration_Reference = null, $version = null)
    {
        $this
            ->setJob_Requisition_Masking_Rule_Configuration_Reference($job_Requisition_Masking_Rule_Configuration_Reference)
            ->setVersion($version);
    }
    /**
     * Get Job_Requisition_Masking_Rule_Configuration_Reference value
     * @return \StructType\Job_Requisition_Masking_Rule_Configuration_SingletonObjectType|null
     */
    public function getJob_Requisition_Masking_Rule_Configuration_Reference()
    {
        return $this->Job_Requisition_Masking_Rule_Configuration_Reference;
    }
    /**
     * Set Job_Requisition_Masking_Rule_Configuration_Reference value
     * @param \StructType\Job_Requisition_Masking_Rule_Configuration_SingletonObjectType $job_Requisition_Masking_Rule_Configuration_Reference
     * @return \StructType\Put_Masked_Job_Requisition_Default_ResponseType
     */
    public function setJob_Requisition_Masking_Rule_Configuration_Reference(\StructType\Job_Requisition_Masking_Rule_Configuration_SingletonObjectType $job_Requisition_Masking_Rule_Configuration_Reference = null)
    {
        $this->Job_Requisition_Masking_Rule_Configuration_Reference = $job_Requisition_Masking_Rule_Configuration_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Put_Masked_Job_Requisition_Default_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;
    }
}
