for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Boris Guéry <[email protected]>
*/
namespace Bgy\OAuth2;
use Bgy\OAuth2\GrantType\GrantDecision;
class FailedTokenRequestAttemptResult implements TokenRequestAttemptResult
{
private $grantDecision;
public function __construct(GrantDecision $grantDecision)
if ($grantDecision->isAllowed()) {
throw new \LogicException('Could not construct FailedTokenRequestResult with an allowed GrantDecision');
}
$this->grantDecision = $grantDecision;
public function getGrantDecision()
return $this->grantDecision;