mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-20 06:13:11 +00:00
25 lines
564 B
PHP
25 lines
564 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BushlanovDev\MaxMessengerBot\Models\Markup;
|
|
|
|
use BushlanovDev\MaxMessengerBot\Enums\MarkupType;
|
|
|
|
/**
|
|
* Represents an *emphasized* (italic) part of the text.
|
|
*/
|
|
final readonly class EmphasizedMarkup extends AbstractMarkup
|
|
{
|
|
/**
|
|
* @param int $from Element start index (zero-based) in text.
|
|
* @param int $length Length of the markup element.
|
|
*/
|
|
public function __construct(
|
|
int $from,
|
|
int $length,
|
|
) {
|
|
parent::__construct(MarkupType::Emphasized, $from, $length);
|
|
}
|
|
}
|