CommentTrait
CSS comment trait
Tags
Table of Contents
Properties
- $comments : array<string|int, mixed>
- Comments
Methods
- addComment() : static
- Add CSS comment
- getComments() : array<string|int, mixed>
- Get CSS comments
- hasComments() : bool
- Has CSS comments
- removeAllComments() : static
- Remove all CSS comments
- removeComment() : static
- Remove CSS comment by index
Properties
$comments
Comments
protected
array<string|int, mixed>
$comments
= []
Methods
addComment()
Add CSS comment
public
addComment(Comment|string $comment[, int $wrap = 80 ][, bool $trailingNewLine = false ]) : static
Parameters
- $comment : Comment|string
- $wrap : int = 80
- $trailingNewLine : bool = false
Return values
staticgetComments()
Get CSS comments
public
getComments() : array<string|int, mixed>
Return values
array<string|int, mixed>hasComments()
Has CSS comments
public
hasComments() : bool
Return values
boolremoveAllComments()
Remove all CSS comments
public
removeAllComments() : static
Return values
staticremoveComment()
Remove CSS comment by index
public
removeComment(int $i) : static
Parameters
- $i : int