for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Parroauth2\Client\EndPoint;
/**
* Implementation of the parameters for EndPointInterface
*
* @psalm-require-implements EndPointInterface
*/
trait EndPointParametersTrait
{
* @var array
* @readonly
private $parameters = [];
* {@inheritdoc}
* @psalm-mutation-free
public function get(string $parameter)
return $this->parameters[$parameter] ?? null;
}
public function parameters(): array
return $this->parameters;
* @param mixed $value
* @return static
public function set(string $parameter, $value): self
$endpoint = clone $this;
$endpoint->parameters[$parameter] = $value;
return $endpoint;