From bf1194496b542d3452da69f058dd84da46630a8d Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 2 Jul 2021 22:06:45 +0200 Subject: [PATCH] Add type annotations for `CSSNamespace` --- src/Property/CSSNamespace.php | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/Property/CSSNamespace.php b/src/Property/CSSNamespace.php index 308371d08..0d7eb4969 100644 --- a/src/Property/CSSNamespace.php +++ b/src/Property/CSSNamespace.php @@ -6,14 +6,23 @@ use Sabberworm\CSS\OutputFormat; /** - * CSSNamespace represents an @namespace rule. + * `CSSNamespace` represents an `@namespace` rule. */ class CSSNamespace implements AtRule { + /** + * @var string + */ private $mUrl; + /** + * @var string + */ private $sPrefix; + /** + * @var int + */ private $iLineNo; /** @@ -21,6 +30,11 @@ class CSSNamespace implements AtRule */ protected $aComments; + /** + * @param string $mUrl + * @param string|null $sPrefix + * @param int $iLineNo + */ public function __construct($mUrl, $sPrefix = null, $iLineNo = 0) { $this->mUrl = $mUrl; @@ -54,21 +68,37 @@ public function render(OutputFormat $oOutputFormat) . $this->mUrl->render($oOutputFormat) . ';'; } + /** + * @return string + */ public function getUrl() { return $this->mUrl; } + /** + * @return string|null + */ public function getPrefix() { return $this->sPrefix; } + /** + * @param string $mUrl + * + * @return void + */ public function setUrl($mUrl) { $this->mUrl = $mUrl; } + /** + * @param string $sPrefix + * + * @return void + */ public function setPrefix($sPrefix) { $this->sPrefix = $sPrefix;