We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait WarnBeforeLeaving |
||
6 | { |
||
7 | /** |
||
8 | * Here we check if user should be warned before leaving the page. |
||
9 | * |
||
10 | * @return bool |
||
11 | */ |
||
12 | public function getWarnBeforeLeaving(): bool |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Change the variable that determines if user should be warned before leaving the page. |
||
19 | * |
||
20 | * @param bool $value |
||
21 | * @return void |
||
22 | */ |
||
23 | public function setWarnBeforeLeaving(bool $value = true): void |
||
28 |