define encoding as interface const

This commit is contained in:
yggverse 2024-07-29 18:26:28 +03:00
parent 83a5fc9d6e
commit 53626a602a
2 changed files with 2 additions and 2 deletions

View file

@ -151,7 +151,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup
$markup, $markup,
mb_strlen( mb_strlen(
$markup, $markup,
'UTF-8' self::ENCODING
) )
); );

View file

@ -10,8 +10,8 @@ namespace Yggverse\Yoda\Interface\Model\Gtk\Pango;
*/ */
interface Markup interface Markup
{ {
public const ENCODING = 'UTF-8';
public const TAG_CODE = 'tt'; public const TAG_CODE = 'tt';
public const WRAP_WIDTH = 140; public const WRAP_WIDTH = 140;
public static function code( public static function code(