<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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