| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ProfileEvent extends Event |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * event is triggered before updating existing user's profile |
||
| 16 | * triggered with \terabytesoft\events\user\ProfileEvent |
||
| 17 | **/ |
||
| 18 | const BEFORE_PROFILE_UPDATE = '\terabytesoft\events\user\ProfileEvent::BEFORE_PROFILE_UPDATE'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * event is triggered after updating existing user's profile |
||
| 22 | * triggered with \terabytesoft\events\user\ProfileEvent |
||
| 23 | **/ |
||
| 24 | const AFTER_PROFILE_UPDATE = '\terabytesoft\events\user\ProfileEvent::AFTER_PROFILE_UPDATE'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var object $form |
||
| 28 | */ |
||
| 29 | private $form; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * getForm |
||
| 33 | */ |
||
| 34 | 1 | public function getForm(): object |
|
| 35 | { |
||
| 36 | 1 | return $this->form; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * setForm |
||
| 41 | */ |
||
| 42 | 1 | public function setForm(object $form): void |
|
| 45 | 1 | } |
|
| 46 | } |
||
| 47 |