| Total Complexity | 6 | 
| Total Lines | 57 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 20 | class TextBlock extends Block  | 
            ||
| 21 | { | 
            ||
| 22 | const PLAIN_TEXT = 'plain_text';  | 
            ||
| 23 | const MARKDOWN = 'mrkdwn';  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * @var string  | 
            ||
| 27 | */  | 
            ||
| 28 | protected $text;  | 
            ||
| 29 | |||
| 30 | /** @var boolean */  | 
            ||
| 31 | protected $emoji = false;  | 
            ||
| 32 | |||
| 33 | /** @var bool */  | 
            ||
| 34 | protected $verbatim = false;  | 
            ||
| 35 | |||
| 36 | public function __construct($type = self::MARKDOWN)  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * @param string $text  | 
            ||
| 43 | */  | 
            ||
| 44 | public function setText(string $text): self  | 
            ||
| 49 | }  | 
            ||
| 50 | |||
| 51 | /**  | 
            ||
| 52 | * @return string  | 
            ||
| 53 | */  | 
            ||
| 54 | public function getText(): string  | 
            ||
| 57 | }  | 
            ||
| 58 | |||
| 59 | /**  | 
            ||
| 60 | * Convert this block to its array representation.  | 
            ||
| 61 | *  | 
            ||
| 62 | * @return array  | 
            ||
| 63 | */  | 
            ||
| 64 | public function toArray(): array  | 
            ||
| 79 |