<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetCostCompensationReportResult_V3 StructType
 * @subpackage Structs
 */
class GetCostCompensationReportResult_V3 extends ExecutionResult
{
    /**
     * The SynchronizedUntilDate
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var string
     */
    public $SynchronizedUntilDate;
    /**
     * The CostCompensationReportItems
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfCostCompensationReportItem_V3
     */
    public $CostCompensationReportItems;
    /**
     * Constructor method for GetCostCompensationReportResult_V3
     * @uses GetCostCompensationReportResult_V3::setSynchronizedUntilDate()
     * @uses GetCostCompensationReportResult_V3::setCostCompensationReportItems()
     * @param string $synchronizedUntilDate
     * @param \ArrayType\ArrayOfCostCompensationReportItem_V3 $costCompensationReportItems
     */
    public function __construct($synchronizedUntilDate = null, \ArrayType\ArrayOfCostCompensationReportItem_V3 $costCompensationReportItems = null)
    {
        $this
            ->setSynchronizedUntilDate($synchronizedUntilDate)
            ->setCostCompensationReportItems($costCompensationReportItems);
    }
    /**
     * Get SynchronizedUntilDate value
     * @return string
     */
    public function getSynchronizedUntilDate()
    {
        return $this->SynchronizedUntilDate;
    }
    /**
     * Set SynchronizedUntilDate value
     * @param string $synchronizedUntilDate
     * @return \StructType\GetCostCompensationReportResult_V3
     */
    public function setSynchronizedUntilDate($synchronizedUntilDate = null)
    {
        // validation for constraint: string
        if (!is_null($synchronizedUntilDate) && !is_string($synchronizedUntilDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($synchronizedUntilDate, true), gettype($synchronizedUntilDate)), __LINE__);
        }
        $this->SynchronizedUntilDate = $synchronizedUntilDate;
        return $this;
    }
    /**
     * Get CostCompensationReportItems value
     * @return \ArrayType\ArrayOfCostCompensationReportItem_V3|null
     */
    public function getCostCompensationReportItems()
    {
        return $this->CostCompensationReportItems;
    }
    /**
     * Set CostCompensationReportItems value
     * @param \ArrayType\ArrayOfCostCompensationReportItem_V3 $costCompensationReportItems
     * @return \StructType\GetCostCompensationReportResult_V3
     */
    public function setCostCompensationReportItems(\ArrayType\ArrayOfCostCompensationReportItem_V3 $costCompensationReportItems = null)
    {
        $this->CostCompensationReportItems = $costCompensationReportItems;
        return $this;
    }
}
