for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Alexandre
* Date: 18/02/2018
* Time: 19:12
*/
namespace OAuth2\ResponseTypes;
class ResponseTypeManager
{
protected $responseTypes = [];
public function addResponseType(string $identifier, ResponseTypeInterface $responseType)
$this->responseTypes[$identifier] = $responseType;
}
public function getResponseType(string $identifier): ?ResponseTypeInterface
return $this->responseTypes[$identifier] ?? null;