mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +00:00
format arguments
This commit is contained in:
parent
3758abe8ab
commit
8d33296d8a
1 changed files with 14 additions and 5 deletions
19
src/Line.php
19
src/Line.php
|
|
@ -11,8 +11,11 @@ class Line
|
|||
private bool $_escaped;
|
||||
private ?int $_number;
|
||||
|
||||
public function __construct(string $data = '', bool $escaped = false, ?int $number = null)
|
||||
{
|
||||
public function __construct(
|
||||
string $data = '',
|
||||
bool $escaped = false,
|
||||
?int $number = null
|
||||
) {
|
||||
$this->setData(
|
||||
$data
|
||||
);
|
||||
|
|
@ -31,7 +34,9 @@ class Line
|
|||
return $this->_data;
|
||||
}
|
||||
|
||||
public function setData(string $data): void
|
||||
public function setData(
|
||||
string $data
|
||||
): void
|
||||
{
|
||||
$this->_data = $data;
|
||||
}
|
||||
|
|
@ -41,7 +46,9 @@ class Line
|
|||
return $this->_escaped;
|
||||
}
|
||||
|
||||
public function setEscaped(bool $escaped): void
|
||||
public function setEscaped(
|
||||
bool $escaped
|
||||
): void
|
||||
{
|
||||
$this->_escaped = $escaped;
|
||||
}
|
||||
|
|
@ -51,7 +58,9 @@ class Line
|
|||
return $this->_number;
|
||||
}
|
||||
|
||||
public function setNumber(?int $number): void
|
||||
public function setNumber(
|
||||
?int $number
|
||||
): void
|
||||
{
|
||||
$this->_number = $number;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue