<?php

namespace Straxus\FarfetchSDK\Model;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetSonIdResponse Model
 * @subpackage Structs
 */
class GetSonIdResponse extends AbstractStructBase
{
    /**
     * The GetSonIdResult
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $GetSonIdResult;
    /**
     * Constructor method for GetSonIdResponse
     * @uses GetSonIdResponse::setGetSonIdResult()
     * @param int $getSonIdResult
     */
    public function __construct($getSonIdResult = null)
    {
        $this
            ->setGetSonIdResult($getSonIdResult);
    }
    /**
     * Get GetSonIdResult value
     * @return int
     */
    public function getGetSonIdResult()
    {
        return $this->GetSonIdResult;
    }
    /**
     * Set GetSonIdResult value
     * @param int $getSonIdResult
     * @return \Straxus\FarfetchSDK\Model\GetSonIdResponse
     */
    public function setGetSonIdResult($getSonIdResult = null)
    {
        // validation for constraint: int
        if (!is_null($getSonIdResult) && !(is_int($getSonIdResult) || ctype_digit($getSonIdResult))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($getSonIdResult, true), gettype($getSonIdResult)), __LINE__);
        }
        $this->GetSonIdResult = $getSonIdResult;
        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 \Straxus\FarfetchSDK\Model\GetSonIdResponse
     */
    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__;
    }
}
