File: //proc/thread-self/root/opt/cpguard/app/vendor/afosto/yaac/src/Data/Challenge.php
<?php
namespace Afosto\Acme\Data;
class Challenge
{
/**
* @var string
*/
protected $authorizationURL;
/**
* @var string
*/
protected $type;
/**
* @var string
*/
protected $status;
/**
* @var string
*/
protected $url;
/**
* @var string
*/
protected $token;
/**
* Challenge constructor.
* @param string $authorizationURL
* @param string $type
* @param string $status
* @param string $url
* @param string $token
*/
public function __construct(string $authorizationURL, string $type, string $status, string $url, string $token)
{
$this->authorizationURL = $authorizationURL;
$this->type = $type;
$this->status = $status;
$this->url = $url;
$this->token = $token;
}
/**
* Get the URL for the challenge
* @return string
*/
public function getUrl(): string
{
return $this->url;
}
/**
* Returns challenge type (DNS or HTTP)
* @return string
*/
public function getType(): string
{
return $this->type;
}
/**
* Returns the token
* @return string
*/
public function getToken(): string
{
return $this->token;
}
/**
* Returns the status
* @return string
*/
public function getStatus(): string
{
return $this->status;
}
/**
* Returns authorization URL
* @return string
*/
public function getAuthorizationURL(): string
{
return $this->authorizationURL;
}
}