<?php

namespace Geniki\GenikiStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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