| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ConnectEvent extends Event |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * event is triggered before connecting user to social account |
||
| 16 | * triggered with \terabytesoft\events\user\ConnectEvent |
||
| 17 | **/ |
||
| 18 | const BEFORE_CONNECT = '\terabytesoft\events\user\ConnectEvent::BEFORE_CONNECT'; |
||
| 19 | /** |
||
| 20 | * event is triggered after connecting user to social account |
||
| 21 | * triggered with \terabytesoft\events\user\ConnectEvent |
||
| 22 | */ |
||
| 23 | const AFTER_CONNECT = '\terabytesoft\events\user\ConnectEvent::AFTER_CONNECT'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * event is triggered before disconnecting social account from user |
||
| 27 | * triggered with \terabytesoft\events\user\ConnectEvent |
||
| 28 | */ |
||
| 29 | const BEFORE_DISCONNECT = '\terabytesoft\events\user\ConnectEvent::BEFORE_DISCONNECT'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * event is triggered after disconnecting social account from user |
||
| 33 | * triggered with \terabytesoft\events\user\ConnectEvent |
||
| 34 | */ |
||
| 35 | const AFTER_DISCONNECT = '\terabytesoft\events\user\ConnectEvent::AFTER_DISCONNECT'; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var object $form |
||
| 39 | */ |
||
| 40 | private $form; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * getForm |
||
| 44 | */ |
||
| 45 | 1 | public function getForm(): object |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * setForm |
||
| 52 | */ |
||
| 53 | 1 | public function setForm(object $form): void |
|
| 58 |