Browse Source

rename setter

PHP-GTK3
yggverse 4 months ago
parent
commit
2cb2205b1a
  1. 2
      src/Abstract/Entity/Browser/Container/Page/Content/Markup.php
  2. 6
      src/Entity/Browser/Container/Page/Content.php
  3. 2
      src/Entity/Browser/Container/Page/Content/Gemtext.php
  4. 2
      src/Entity/Browser/Container/Page/Content/Plain.php

2
src/Abstract/Entity/Browser/Container/Page/Content/Markup.php

@ -71,7 +71,7 @@ abstract class Markup @@ -71,7 +71,7 @@ abstract class Markup
string $href
);
abstract public function setSource(
abstract public function set(
string $value
): void;
}

6
src/Entity/Browser/Container/Page/Content.php

@ -77,7 +77,7 @@ class Content @@ -77,7 +77,7 @@ class Content
$this
);
$document->setSource(
$document->set(
$data
);
@ -89,7 +89,7 @@ class Content @@ -89,7 +89,7 @@ class Content
$this
);
$document->setSource(
$document->set(
$data
);
@ -110,7 +110,7 @@ class Content @@ -110,7 +110,7 @@ class Content
$this
);
$document->setSource(
$document->set(
_('MIME type not supported')
);
}

2
src/Entity/Browser/Container/Page/Content/Gemtext.php

@ -11,7 +11,7 @@ use \Yggverse\Net\Address; @@ -11,7 +11,7 @@ use \Yggverse\Net\Address;
class Gemtext extends Markup
{
public function setSource(
public function set(
string $value,
string | null &$title = null,
bool $preformatted = false

2
src/Entity/Browser/Container/Page/Content/Plain.php

@ -8,7 +8,7 @@ use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Content\Markup; @@ -8,7 +8,7 @@ use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Content\Markup;
class Plain extends Markup
{
public function setSource(
public function set(
string $value
): void
{

Loading…
Cancel
Save