<?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;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \CustomerManagement\StructType\LookupCustomerIdForDealerResponse
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
