| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait HasLaunchButton |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Label to display on the launch button |
||
| 12 | */ |
||
| 13 | abstract public function label(); |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Icon to display on the launch button |
||
| 17 | */ |
||
| 18 | abstract public function icon(); |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Define the launch button link |
||
| 22 | * |
||
| 23 | * @return array|string |
||
| 24 | */ |
||
| 25 | public function link() { |
||
| 26 | return ''; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Define the launch button |
||
| 31 | * |
||
| 32 | * @return LaunchButton |
||
| 33 | */ |
||
| 34 | final public function button() |
||
| 44 | } |
||
| 45 | |||
| 46 | } |