<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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