<?php

/*
 * This file was automatically generated.
 */
namespace Syde\Vendor\Worldline\OnlinePayments\Sdk\Domain;

use UnexpectedValueException;
/**
 * @package OnlinePayments\Sdk\Domain
 */
class ValidateCredentialsResponse extends DataObject
{
    /**
     * @var string
     */
    public $result = null;
    /**
     * @return string
     */
    public function getResult()
    {
        return $this->result;
    }
    /**
     * @param string
     */
    public function setResult($value)
    {
        $this->result = $value;
    }
    /**
     * @return object
     */
    public function toObject()
    {
        $object = parent::toObject();
        if (!\is_null($this->result)) {
            $object->result = $this->result;
        }
        return $object;
    }
    /**
     * @param object $object
     * @return $this
     * @throws UnexpectedValueException
     */
    public function fromObject($object)
    {
        parent::fromObject($object);
        if (\property_exists($object, 'result')) {
            $this->result = $object->result;
        }
        return $this;
    }
}
