<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Asset_Place_in_Service_DataType StructType
 * Meta information extracted from the WSDL
 * - documentation: Element containing Place in Service details.
 * @subpackage Structs
 */
class Asset_Place_in_Service_DataType extends AbstractStructBase
{
    /**
     * The Date_Placed_In_Service
     * Meta information extracted from the WSDL
     * - documentation: Date Asset is placed in Service
     * - maxOccurs: 1
     * @var string
     */
    public $Date_Placed_In_Service;
    /**
     * Constructor method for Asset_Place_in_Service_DataType
     * @uses Asset_Place_in_Service_DataType::setDate_Placed_In_Service()
     * @param string $date_Placed_In_Service
     */
    public function __construct($date_Placed_In_Service = null)
    {
        $this
            ->setDate_Placed_In_Service($date_Placed_In_Service);
    }
    /**
     * Get Date_Placed_In_Service value
     * @return string|null
     */
    public function getDate_Placed_In_Service()
    {
        return $this->Date_Placed_In_Service;
    }
    /**
     * Set Date_Placed_In_Service value
     * @param string $date_Placed_In_Service
     * @return \StructType\Asset_Place_in_Service_DataType
     */
    public function setDate_Placed_In_Service($date_Placed_In_Service = null)
    {
        // validation for constraint: string
        if (!is_null($date_Placed_In_Service) && !is_string($date_Placed_In_Service)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($date_Placed_In_Service, true), gettype($date_Placed_In_Service)), __LINE__);
        }
        $this->Date_Placed_In_Service = $date_Placed_In_Service;
        return $this;
    }
}
