<?php

namespace Slack\Blockkit\Blocks;

final class Text
{
	public string $type;
	public string $text;

	public function __construct(string $text,string $type='mrkdwn')
	{
		$this->type = $type;
		$this->text = $text;
	}

	public static function item(string $text,string $type='mrkdwn'): self
	{
		return new self($text,$type);
	}
}