Commented
in package
FinalYes
A map entry's value with a comment `Writer` puts on the lines above its key -- a `# was: env("APP_URL")` note for a migrated setting, say.
Only a map entry can carry one: a list's elements have no key to sit
above, and Writer refuses a Commented there.
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$lines read-only
public
array<int, string>
$lines
the comment's lines, without #
$value read-only
public
mixed
$value
Methods
__construct()
public
__construct(mixed $value, string $comment) : mixed
Parameters
- $value : mixed
-
the entry's value, written as if it were not wrapped
- $comment : string
-
the comment; each line becomes one
#line