diff --git a/Message/Http/BrowserType.php b/Message/Http/BrowserType.php index 9f0c9c66a..20147b907 100644 --- a/Message/Http/BrowserType.php +++ b/Message/Http/BrowserType.php @@ -33,6 +33,7 @@ use phpOMS\Datatypes\Enum; abstract class BrowserType extends Enum { const IE = 'msie'; /* Internet Explorer */ + const EDGE = 'edge'; /* Internet Explorer Edge 20+ */ const FIREFOX = 'firefox'; /* Firefox */ const SAFARI = 'safari'; /* Safari */ const CHROME = 'chrome'; /* Chrome */ @@ -41,4 +42,5 @@ abstract class BrowserType extends Enum const MAXTHON = 'maxthon'; /* Maxthon */ const KONQUEROR = 'konqueror'; /* Konqueror */ const HANDHELD = 'mobile'; /* Handheld Browser */ + const BLINK = 'blink'; /* Blink Browser */ } diff --git a/Message/RequestAbstract.php b/Message/RequestAbstract.php index d719132a2..2926cec67 100644 --- a/Message/RequestAbstract.php +++ b/Message/RequestAbstract.php @@ -34,7 +34,6 @@ use phpOMS\Uri\UriInterface; */ abstract class RequestAbstract implements MessageInterface { - /** * Uri. * @@ -51,6 +50,14 @@ abstract class RequestAbstract implements MessageInterface */ protected $method = null; + /** + * Request type. + * + * @var string + * @since 1.0.0 + */ + protected $type = null; + /** * Root. * @@ -218,6 +225,34 @@ abstract class RequestAbstract implements MessageInterface return $this->path[$key] ?? null; } + /** + * Set request type. + * + * E.g. M_JSON + * + * @param string $type Request type + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function setType(string $type) + { + $this->type = $type; + } + + /** + * Get request type. + * + * @return string + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function getType() : string + { + return $this->type; + } + /** * {@inheritdoc} */