| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class UserRenamedPostsIEvent extends ApplicationInboundEvent |
||
| 8 | { |
||
| 9 | const EVENT_NAME = "USER_RENAMED"; |
||
| 10 | |||
| 11 | private string $oldLogin; |
||
| 12 | |||
| 13 | private string $newLogin; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param array $data |
||
| 17 | */ |
||
| 18 | 3 | public function __construct(array $data) |
|
| 19 | { |
||
| 20 | 3 | parent::__construct( $data); |
|
| 21 | 3 | $this->oldLogin = $this->string('oldLogin'); |
|
| 22 | 3 | $this->newLogin = $this->string('newLogin'); |
|
| 23 | 3 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 2 | public function getOldLogin(): string |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 2 | public function getNewLogin(): string |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | 1 | * @return string |
|
| 43 | */ |
||
| 44 | public static function getName(): string |
||
| 47 | } |
||
| 48 | } |