for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bankiru\Api\Rpc\Test\Impl;
use Bankiru\Api\Rpc\RpcRequestInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
final class Request implements RpcRequestInterface
{
/** @var ParameterBag */
private $attributes;
/** @var string */
private $method;
/** @var array|\stdClass */
private $parameters;
/**
* Request constructor.
*
* @param ParameterBag $attributes
* @param string $method
* @param array|\stdClass $parameters
*/
public function __construct($method, $parameters, ParameterBag $attributes = null)
$this->attributes = $attributes ?: new ParameterBag();
$this->method = $method;
$this->parameters = $parameters;
}
/** {@inheritdoc} */
public function getAttributes()
return $this->attributes;
public function getMethod()
return $this->method;
public function getParameters()
return $this->parameters;