for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Http Adapter package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\HttpAdapter\Event\BasicAuth;
use Ivory\HttpAdapter\Message\InternalRequestInterface;
/**
* @author GeLo <[email protected]>
interface BasicAuthInterface
{
* @return string
public function getUsername();
* @param string $username
public function setUsername($username);
public function getPassword();
* @param string $password
public function setPassword($password);
* @return bool
public function hasMatcher();
* @return string|callable|null
public function getMatcher();
* @param string|callable|null $matcher
public function setMatcher($matcher);
* @param InternalRequestInterface $internalRequest
* @return InternalRequestInterface
public function authenticate(InternalRequestInterface $internalRequest);
}