diff --git a/CHANGELOG.md b/CHANGELOG.md index 36f1f1be..dac7702a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Please also have a look at our ### Changed +- Make constructors of CSS element classes `@internal` (#888) - Make all non-private properties `@internal` (#886) - Use more native type declarations and strict mode (#641, #772, #774, #778, #804, #841, #873, #875) diff --git a/src/CSSList/AtRuleBlockList.php b/src/CSSList/AtRuleBlockList.php index af0adf31..d76d9fae 100644 --- a/src/CSSList/AtRuleBlockList.php +++ b/src/CSSList/AtRuleBlockList.php @@ -26,6 +26,8 @@ class AtRuleBlockList extends CSSBlockList implements AtRule * @param string $type * @param string $arguments * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($type, $arguments = '', $lineNumber = 0) { diff --git a/src/CSSList/CSSBlockList.php b/src/CSSList/CSSBlockList.php index e72850b1..491c5d94 100644 --- a/src/CSSList/CSSBlockList.php +++ b/src/CSSList/CSSBlockList.php @@ -22,6 +22,8 @@ abstract class CSSBlockList extends CSSList { /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($lineNumber = 0) { diff --git a/src/CSSList/CSSList.php b/src/CSSList/CSSList.php index 425ca5ba..e9c1e302 100644 --- a/src/CSSList/CSSList.php +++ b/src/CSSList/CSSList.php @@ -56,6 +56,8 @@ abstract class CSSList implements Renderable, Commentable /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($lineNumber = 0) { diff --git a/src/CSSList/Document.php b/src/CSSList/Document.php index 490a9752..86efdc50 100644 --- a/src/CSSList/Document.php +++ b/src/CSSList/Document.php @@ -20,6 +20,8 @@ class Document extends CSSBlockList { /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($lineNumber = 0) { diff --git a/src/Comment/Comment.php b/src/Comment/Comment.php index acc0fc34..715c3402 100644 --- a/src/Comment/Comment.php +++ b/src/Comment/Comment.php @@ -26,6 +26,8 @@ class Comment implements Renderable /** * @param string $commentText * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($commentText = '', $lineNumber = 0) { diff --git a/src/Parsing/Anchor.php b/src/Parsing/Anchor.php index 039f783e..9afd5aa0 100644 --- a/src/Parsing/Anchor.php +++ b/src/Parsing/Anchor.php @@ -21,6 +21,8 @@ class Anchor /** * @param int $iPosition + * + * @internal since 8.8.0 */ public function __construct($iPosition, ParserState $parserState) { diff --git a/src/Property/CSSNamespace.php b/src/Property/CSSNamespace.php index 7ef5e0d5..52f0e790 100644 --- a/src/Property/CSSNamespace.php +++ b/src/Property/CSSNamespace.php @@ -38,6 +38,8 @@ class CSSNamespace implements AtRule * @param string $mUrl * @param string|null $sPrefix * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($mUrl, $sPrefix = null, $lineNumber = 0) { diff --git a/src/Property/Charset.php b/src/Property/Charset.php index 9e848392..3ff30db8 100644 --- a/src/Property/Charset.php +++ b/src/Property/Charset.php @@ -39,6 +39,8 @@ class Charset implements AtRule /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct(CSSString $oCharset, $lineNumber = 0) { diff --git a/src/Property/Import.php b/src/Property/Import.php index 68c13f39..1618622f 100644 --- a/src/Property/Import.php +++ b/src/Property/Import.php @@ -40,6 +40,8 @@ class Import implements AtRule /** * @param string $mediaQuery * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct(URL $location, $mediaQuery, $lineNumber = 0) { diff --git a/src/Property/Selector.php b/src/Property/Selector.php index 28e63ec2..cb89af3a 100644 --- a/src/Property/Selector.php +++ b/src/Property/Selector.php @@ -87,6 +87,8 @@ public static function isValid($sSelector) /** * @param string $sSelector * @param bool $bCalculateSpecificity + * + * @internal since 8.8.0 */ public function __construct($sSelector, $bCalculateSpecificity = false) { diff --git a/src/Rule/Rule.php b/src/Rule/Rule.php index d863b34c..3c7b9576 100644 --- a/src/Rule/Rule.php +++ b/src/Rule/Rule.php @@ -64,6 +64,8 @@ class Rule implements Renderable, Commentable * @param string $sRule * @param int $lineNumber * @param int $iColNo + * + * @internal since 8.8.0 */ public function __construct($sRule, $lineNumber = 0, $iColNo = 0) { diff --git a/src/RuleSet/AtRuleSet.php b/src/RuleSet/AtRuleSet.php index 4a9329a8..8feb3a70 100644 --- a/src/RuleSet/AtRuleSet.php +++ b/src/RuleSet/AtRuleSet.php @@ -29,6 +29,8 @@ class AtRuleSet extends RuleSet implements AtRule * @param string $sType * @param string $sArgs * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($sType, $sArgs = '', $lineNumber = 0) { diff --git a/src/RuleSet/DeclarationBlock.php b/src/RuleSet/DeclarationBlock.php index 231476cf..dd151a60 100644 --- a/src/RuleSet/DeclarationBlock.php +++ b/src/RuleSet/DeclarationBlock.php @@ -31,6 +31,8 @@ class DeclarationBlock extends RuleSet /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($lineNumber = 0) { diff --git a/src/RuleSet/RuleSet.php b/src/RuleSet/RuleSet.php index 5f9dc99d..fb008313 100644 --- a/src/RuleSet/RuleSet.php +++ b/src/RuleSet/RuleSet.php @@ -45,6 +45,8 @@ abstract class RuleSet implements Renderable, Commentable /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($lineNumber = 0) { diff --git a/src/Value/CSSFunction.php b/src/Value/CSSFunction.php index 37572615..6d29f966 100644 --- a/src/Value/CSSFunction.php +++ b/src/Value/CSSFunction.php @@ -25,6 +25,8 @@ class CSSFunction extends ValueList * @param RuleValueList|array $aArguments * @param string $sSeparator * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($sName, $aArguments, $sSeparator = ',', $lineNumber = 0) { diff --git a/src/Value/CSSString.php b/src/Value/CSSString.php index a1ca1c70..346b1417 100644 --- a/src/Value/CSSString.php +++ b/src/Value/CSSString.php @@ -25,6 +25,8 @@ class CSSString extends PrimitiveValue /** * @param string $sString * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($sString, $lineNumber = 0) { diff --git a/src/Value/CalcRuleValueList.php b/src/Value/CalcRuleValueList.php index 508296d9..cb4f5fc9 100644 --- a/src/Value/CalcRuleValueList.php +++ b/src/Value/CalcRuleValueList.php @@ -10,6 +10,8 @@ class CalcRuleValueList extends RuleValueList { /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($lineNumber = 0) { diff --git a/src/Value/Color.php b/src/Value/Color.php index c4d6a4ee..a132c257 100644 --- a/src/Value/Color.php +++ b/src/Value/Color.php @@ -18,6 +18,8 @@ class Color extends CSSFunction /** * @param array $colorValues * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct(array $colorValues, $lineNumber = 0) { diff --git a/src/Value/LineName.php b/src/Value/LineName.php index 18a53333..93d70823 100644 --- a/src/Value/LineName.php +++ b/src/Value/LineName.php @@ -14,6 +14,8 @@ class LineName extends ValueList /** * @param array $aComponents * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct(array $aComponents = [], $lineNumber = 0) { diff --git a/src/Value/PrimitiveValue.php b/src/Value/PrimitiveValue.php index 4cccf35c..b382b49a 100644 --- a/src/Value/PrimitiveValue.php +++ b/src/Value/PrimitiveValue.php @@ -8,6 +8,8 @@ abstract class PrimitiveValue extends Value { /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($lineNumber = 0) { diff --git a/src/Value/RuleValueList.php b/src/Value/RuleValueList.php index b68df0ea..4c4006b1 100644 --- a/src/Value/RuleValueList.php +++ b/src/Value/RuleValueList.php @@ -14,6 +14,8 @@ class RuleValueList extends ValueList /** * @param string $sSeparator * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($sSeparator = ',', $lineNumber = 0) { diff --git a/src/Value/Size.php b/src/Value/Size.php index 82fdc261..0395c865 100644 --- a/src/Value/Size.php +++ b/src/Value/Size.php @@ -72,6 +72,8 @@ class Size extends PrimitiveValue * @param string|null $sUnit * @param bool $bIsColorComponent * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($fSize, $sUnit = null, $bIsColorComponent = false, $lineNumber = 0) { diff --git a/src/Value/URL.php b/src/Value/URL.php index 018abefc..f2e421ba 100644 --- a/src/Value/URL.php +++ b/src/Value/URL.php @@ -22,6 +22,8 @@ class URL extends PrimitiveValue /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct(CSSString $oURL, $lineNumber = 0) { diff --git a/src/Value/Value.php b/src/Value/Value.php index 3fa7abd3..d8d3169b 100644 --- a/src/Value/Value.php +++ b/src/Value/Value.php @@ -25,6 +25,8 @@ abstract class Value implements Renderable /** * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($lineNumber = 0) { diff --git a/src/Value/ValueList.php b/src/Value/ValueList.php index 683ada3d..d7e7286c 100644 --- a/src/Value/ValueList.php +++ b/src/Value/ValueList.php @@ -32,6 +32,8 @@ abstract class ValueList extends Value * @param array|Value|string $aComponents * @param string $sSeparator * @param int $lineNumber + * + * @internal since 8.8.0 */ public function __construct($aComponents = [], $sSeparator = ',', $lineNumber = 0) {