<?php

namespace Geniki\GenikiStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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