<?php
namespace OnlinePayments\Sdk\Communication;

use Exception;

/**
 * Class RequestObject
 *
 * @package OnlinePayments\Sdk\Communication
 */
abstract class RequestObject
{
    /**
     * @throws Exception
     */
    public function __set($name, $value)
    {
        throw new Exception('Cannot add new property ' . $name . ' to instances of class ' . get_class($this));
    }
}
