mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-02-14 04:52:57 +00:00
Initial commit
This commit is contained in:
37
vendor/nexmo/client/src/Entity/NoRequestResponseTrait.php
vendored
Normal file
37
vendor/nexmo/client/src/Entity/NoRequestResponseTrait.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Nexmo Client Library for PHP
|
||||
*
|
||||
* @copyright Copyright (c) 2016 Nexmo, Inc. (http://nexmo.com)
|
||||
* @license https://github.com/Nexmo/nexmo-php/blob/master/LICENSE.txt MIT License
|
||||
*/
|
||||
|
||||
namespace Nexmo\Entity;
|
||||
|
||||
/**
|
||||
* Class Psr7Trait
|
||||
*
|
||||
* Allow an entity to contain last request / response objects.
|
||||
*/
|
||||
trait NoRequestResponseTrait
|
||||
{
|
||||
public function setResponse(\Psr\Http\Message\ResponseInterface $response)
|
||||
{
|
||||
throw new \RuntimeException(__CLASS__ . ' does not support request / response');
|
||||
}
|
||||
|
||||
public function setRequest(\Psr\Http\Message\RequestInterface $request)
|
||||
{
|
||||
throw new \RuntimeException(__CLASS__ . ' does not support request / response');
|
||||
}
|
||||
|
||||
public function getRequest()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getResponse()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user