for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) Phauthentic (https://github.com/Phauthentic)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
* @copyright Copyright (c) Phauthentic (https://github.com/Phauthentic)
* @link https://github.com/Phauthentic
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
declare(strict_types=1);
namespace Phauthentic\Authentication\Authenticator;
class Failure implements FailureInterface
{
* @var \Phauthentic\Authentication\Authenticator\AuthenticatorInterface
protected AuthenticatorInterface $authenticator;
* @var \Phauthentic\Authentication\Authenticator\ResultInterface
protected ResultInterface $result;
* Constructor.
* @param \Phauthentic\Authentication\Authenticator\AuthenticatorInterface $authenticator Authenticator.
* @param \Phauthentic\Authentication\Authenticator\ResultInterface $result Result.
public function __construct(AuthenticatorInterface $authenticator, ResultInterface $result)
$this->authenticator = $authenticator;
$this->result = $result;
}
* {@inheritDoc}
public function getAuthenticator(): AuthenticatorInterface
return $this->authenticator;
public function getResult(): ResultInterface
return $this->result;