php-cooper-config

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

$lines  : array<int, string>
$value  : mixed

Methods

__construct()  : mixed

Properties

$lines read-only

public array<int, string> $lines

the comment's lines, without #

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

On this page

Search results