<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ServiceTimeTachoDetail_V4 StructType
 * @subpackage Structs
 */
class ServiceTimeTachoDetail_V4 extends ServiceTimeTachoDetail_V3
{
    /**
     * The TachoID
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $TachoID;
    /**
     * Constructor method for ServiceTimeTachoDetail_V4
     * @uses ServiceTimeTachoDetail_V4::setTachoID()
     * @param int $tachoID
     */
    public function __construct($tachoID = null)
    {
        $this
            ->setTachoID($tachoID);
    }
    /**
     * Get TachoID value
     * @return int
     */
    public function getTachoID()
    {
        return $this->TachoID;
    }
    /**
     * Set TachoID value
     * @param int $tachoID
     * @return \StructType\ServiceTimeTachoDetail_V4
     */
    public function setTachoID($tachoID = null)
    {
        // validation for constraint: int
        if (!is_null($tachoID) && !(is_int($tachoID) || ctype_digit($tachoID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($tachoID, true), gettype($tachoID)), __LINE__);
        }
        $this->TachoID = $tachoID;
        return $this;
    }
}
