mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-18 22:42:49 +00:00
27 lines
644 B
PHP
27 lines
644 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BushlanovDev\MaxMessengerBot\Models\Markup;
|
|
|
|
use BushlanovDev\MaxMessengerBot\Enums\MarkupType;
|
|
use BushlanovDev\MaxMessengerBot\Models\AbstractModel;
|
|
|
|
/**
|
|
* Base class for a text markup element.
|
|
*/
|
|
abstract readonly class AbstractMarkup extends AbstractModel
|
|
{
|
|
/**
|
|
* @param MarkupType $type The type of the markup element.
|
|
* @param int $from Element start index (zero-based) in text.
|
|
* @param int $length Length of the markup element.
|
|
*/
|
|
public function __construct(
|
|
public MarkupType $type,
|
|
public int $from,
|
|
public int $length,
|
|
) {
|
|
}
|
|
}
|