Install github api
This commit is contained in:
parent
4d22238cee
commit
18a06dccba
589 changed files with 68631 additions and 10 deletions
30
vendor/knplabs/github-api/lib/Github/Exception/TwoFactorAuthenticationRequiredException.php
vendored
Normal file
30
vendor/knplabs/github-api/lib/Github/Exception/TwoFactorAuthenticationRequiredException.php
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace Github\Exception;
|
||||
|
||||
use Throwable;
|
||||
|
||||
class TwoFactorAuthenticationRequiredException extends RuntimeException
|
||||
{
|
||||
/** @var string */
|
||||
private $type;
|
||||
|
||||
/**
|
||||
* @param string $type
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct(string $type, int $code = 0, Throwable $previous = null)
|
||||
{
|
||||
$this->type = $type;
|
||||
parent::__construct('Two factor authentication is enabled on this account', $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType(): string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue