<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetEtlRunDetailsRequest StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetEtlRunDetailsRequest
 * @subpackage Structs
 */
class GetEtlRunDetailsRequest extends AbstractStructBase
{
    /**
     * The LocalId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $LocalId;
    /**
     * Constructor method for GetEtlRunDetailsRequest
     * @uses GetEtlRunDetailsRequest::setLocalId()
     * @param int $localId
     */
    public function __construct($localId = null)
    {
        $this
            ->setLocalId($localId);
    }
    /**
     * Get LocalId value
     * @return int|null
     */
    public function getLocalId()
    {
        return $this->LocalId;
    }
    /**
     * Set LocalId value
     * @param int $localId
     * @return \patest\StructType\GetEtlRunDetailsRequest
     */
    public function setLocalId($localId = null)
    {
        // validation for constraint: int
        if (!is_null($localId) && !(is_int($localId) || ctype_digit($localId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($localId, true), gettype($localId)), __LINE__);
        }
        $this->LocalId = $localId;
        return $this;
    }
}
