| Total Complexity | 6 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Checkboxes extends Options |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Block type. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $type = 'checkboxes'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Internal attribute to property map. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected static $availableAttributes = [ |
||
| 22 | 'action_id' => 'action_id', |
||
| 23 | 'options' => 'options', |
||
| 24 | 'confirm' => 'confirm', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the intially selected options. |
||
| 29 | * |
||
| 30 | * @return Maknz\Slack\Object\Option[] |
||
| 31 | */ |
||
| 32 | 1 | public function getInitialOptions() |
|
| 36 | 1 | })); |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Convert the block to its array representation. |
||
| 41 | * |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | 1 | public function toArray() |
|
| 71 |