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