<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RemoteDigitalTachoDownload StructType
 * @subpackage Structs
 */
class RemoteDigitalTachoDownload extends AbstractStructBase
{
    /**
     * The LastSuccesfullDownload
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var string
     */
    public $LastSuccesfullDownload;
    /**
     * Constructor method for RemoteDigitalTachoDownload
     * @uses RemoteDigitalTachoDownload::setLastSuccesfullDownload()
     * @param string $lastSuccesfullDownload
     */
    public function __construct($lastSuccesfullDownload = null)
    {
        $this
            ->setLastSuccesfullDownload($lastSuccesfullDownload);
    }
    /**
     * Get LastSuccesfullDownload value
     * @return string
     */
    public function getLastSuccesfullDownload()
    {
        return $this->LastSuccesfullDownload;
    }
    /**
     * Set LastSuccesfullDownload value
     * @param string $lastSuccesfullDownload
     * @return \StructType\RemoteDigitalTachoDownload
     */
    public function setLastSuccesfullDownload($lastSuccesfullDownload = null)
    {
        // validation for constraint: string
        if (!is_null($lastSuccesfullDownload) && !is_string($lastSuccesfullDownload)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lastSuccesfullDownload, true), gettype($lastSuccesfullDownload)), __LINE__);
        }
        $this->LastSuccesfullDownload = $lastSuccesfullDownload;
        return $this;
    }
}
