Files
hyperf-saml/src/Exceptions/RuntimeException.php

46 lines
830 B
PHP
Raw Normal View History

2022-04-24 21:31:20 +08:00
<?php
declare(strict_types=1);
2023-12-25 17:10:21 +08:00
2022-04-24 21:31:20 +08:00
namespace Singularity\HyperfSaml\Exceptions;
use Throwable;
class RuntimeException extends \RuntimeException
{
public function __construct(
public string $statusCode,
private string $messageId = '',
private string $relayState = '',
$message = "",
$code = 0,
Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
2023-12-25 17:10:21 +08:00
2022-04-24 21:31:20 +08:00
/**
* @return string
*/
public function getStatusCode(): string
{
return $this->statusCode;
}
2023-12-25 17:10:21 +08:00
2022-04-24 21:31:20 +08:00
/**
* @return string
*/
public function getRelayState(): string
{
return $this->relayState;
}
2023-12-25 17:10:21 +08:00
2022-04-24 21:31:20 +08:00
/**
* @return string
*/
public function getMessageId(): string
{
return $this->messageId;
}
2023-12-25 17:10:21 +08:00
}