| Methods |
public
|
__construct(string $name, string|Parameters $parameters, string $value, int $line = 0)
Parameters
| $parameters |
raw parameters (without the leading semicolon) or parsed ones
|
| $value |
raw value as in the content line
|
| $line |
number of the content line, 0 for created properties
|
|
#
|
public
static
|
create(string $name, string $value, array<string, string|list<string>>|Parameters $parameters = []): self
Parameters
| $value |
the raw value; newlines are written as "\n" (use Text::escape() for TEXT)
|
Throws
|
#
|
public
static
|
fromContentLine(ContentLine $line): self
|
#
|
public
|
parameter(string $name): ?string
|
#
|
public
|
withValue(string $value): self
|
#
|
public
|
withParameter(string $name, string|list<string>|null $value): self
Parameters
| $value |
null removes the parameter
|
|
#
|
public
|
__toString(): string
The unfolded content line; newlines of the value are written as "\n", so they cannot start
another content line.
The unfolded content line; newlines of the value are written as "\n", so they cannot start
another content line.
Implements
|
#
|