Documentation

CommentTrait

CSS comment trait

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
3.0.0

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
static

getComments()

Get CSS comments

public getComments() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasComments()

Has CSS comments

public hasComments() : bool
Return values
bool

removeAllComments()

Remove all CSS comments

public removeAllComments() : static
Return values
static

removeComment()

Remove CSS comment by index

public removeComment(int $i) : static
Parameters
$i : int
Return values
static

        
On this page

Search results