<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AbsenceSelection_V2 StructType
 * @subpackage Structs
 */
class AbsenceSelection_V2 extends AbstractStructBase
{
    /**
     * The Drivers
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfIdentifier
     */
    public $Drivers;
    /**
     * The ReportingSelection
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\ReportingSelection
     */
    public $ReportingSelection;
    /**
     * The SynchronizationSelection
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\SynchronizationSelection
     */
    public $SynchronizationSelection;
    /**
     * The SocialCabinetCode
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $SocialCabinetCode;
    /**
     * Constructor method for AbsenceSelection_V2
     * @uses AbsenceSelection_V2::setDrivers()
     * @uses AbsenceSelection_V2::setReportingSelection()
     * @uses AbsenceSelection_V2::setSynchronizationSelection()
     * @uses AbsenceSelection_V2::setSocialCabinetCode()
     * @param \ArrayType\ArrayOfIdentifier $drivers
     * @param \StructType\ReportingSelection $reportingSelection
     * @param \StructType\SynchronizationSelection $synchronizationSelection
     * @param string $socialCabinetCode
     */
    public function __construct(\ArrayType\ArrayOfIdentifier $drivers = null, \StructType\ReportingSelection $reportingSelection = null, \StructType\SynchronizationSelection $synchronizationSelection = null, $socialCabinetCode = null)
    {
        $this
            ->setDrivers($drivers)
            ->setReportingSelection($reportingSelection)
            ->setSynchronizationSelection($synchronizationSelection)
            ->setSocialCabinetCode($socialCabinetCode);
    }
    /**
     * Get Drivers value
     * @return \ArrayType\ArrayOfIdentifier|null
     */
    public function getDrivers()
    {
        return $this->Drivers;
    }
    /**
     * Set Drivers value
     * @param \ArrayType\ArrayOfIdentifier $drivers
     * @return \StructType\AbsenceSelection_V2
     */
    public function setDrivers(\ArrayType\ArrayOfIdentifier $drivers = null)
    {
        $this->Drivers = $drivers;
        return $this;
    }
    /**
     * Get ReportingSelection value
     * @return \StructType\ReportingSelection|null
     */
    public function getReportingSelection()
    {
        return $this->ReportingSelection;
    }
    /**
     * Set ReportingSelection value
     * @param \StructType\ReportingSelection $reportingSelection
     * @return \StructType\AbsenceSelection_V2
     */
    public function setReportingSelection(\StructType\ReportingSelection $reportingSelection = null)
    {
        $this->ReportingSelection = $reportingSelection;
        return $this;
    }
    /**
     * Get SynchronizationSelection value
     * @return \StructType\SynchronizationSelection|null
     */
    public function getSynchronizationSelection()
    {
        return $this->SynchronizationSelection;
    }
    /**
     * Set SynchronizationSelection value
     * @param \StructType\SynchronizationSelection $synchronizationSelection
     * @return \StructType\AbsenceSelection_V2
     */
    public function setSynchronizationSelection(\StructType\SynchronizationSelection $synchronizationSelection = null)
    {
        $this->SynchronizationSelection = $synchronizationSelection;
        return $this;
    }
    /**
     * Get SocialCabinetCode value
     * @return string|null
     */
    public function getSocialCabinetCode()
    {
        return $this->SocialCabinetCode;
    }
    /**
     * Set SocialCabinetCode value
     * @param string $socialCabinetCode
     * @return \StructType\AbsenceSelection_V2
     */
    public function setSocialCabinetCode($socialCabinetCode = null)
    {
        // validation for constraint: string
        if (!is_null($socialCabinetCode) && !is_string($socialCabinetCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($socialCabinetCode, true), gettype($socialCabinetCode)), __LINE__);
        }
        $this->SocialCabinetCode = $socialCabinetCode;
        return $this;
    }
}
