| Total Complexity | 4 | 
| Total Lines | 69 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 7 | class Header extends Block  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Block type.  | 
            ||
| 11 | *  | 
            ||
| 12 | * @var string  | 
            ||
| 13 | */  | 
            ||
| 14 | protected $type = 'header';  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * The text for the header.  | 
            ||
| 18 | *  | 
            ||
| 19 | * @var \Maknz\Slack\BlockElement\Text  | 
            ||
| 20 | */  | 
            ||
| 21 | protected $text;  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * Internal attribute to property map.  | 
            ||
| 25 | *  | 
            ||
| 26 | * @var array  | 
            ||
| 27 | */  | 
            ||
| 28 | protected static $availableAttributes = [  | 
            ||
| 29 | 'text' => 'text',  | 
            ||
| 30 | 'block_id' => 'block_id',  | 
            ||
| 31 | ];  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Get the header text.  | 
            ||
| 35 | *  | 
            ||
| 36 | * @return \Maknz\Slack\BlockElement\Text  | 
            ||
| 37 | */  | 
            ||
| 38 | 3 | public function getText()  | 
            |
| 41 | }  | 
            ||
| 42 | |||
| 43 | /**  | 
            ||
| 44 | * Set the header text.  | 
            ||
| 45 | *  | 
            ||
| 46 | * @param mixed $text  | 
            ||
| 47 | *  | 
            ||
| 48 | * @return $this  | 
            ||
| 49 | *  | 
            ||
| 50 | * @throws \InvalidArgumentException  | 
            ||
| 51 | */  | 
            ||
| 52 | 3 | public function setText($text)  | 
            |
| 57 | }  | 
            ||
| 58 | |||
| 59 | /**  | 
            ||
| 60 | * Convert the block to its array representation.  | 
            ||
| 61 | *  | 
            ||
| 62 | * @return array  | 
            ||
| 63 | */  | 
            ||
| 64 | 1 | public function toArray()  | 
            |
| 78 |