| 1 | <?php |
||
| 9 | trait Clipboard |
||
| 10 | { |
||
| 11 | protected $clipboard = false; |
||
| 12 | protected $clipboardCaption = null; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param bool $enabled |
||
| 16 | * @param string|int|null|\Closure $caption |
||
| 17 | * @return $this |
||
| 18 | */ |
||
| 19 | 6 | public function clipboard(bool $enabled = true, $caption = null) |
|
| 26 | |||
| 27 | 9 | public function hasClipboardButton() |
|
| 31 | |||
| 32 | 6 | public function getClipboardCaption($model) |
|
| 38 | } |
||
| 39 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.