1 | <?php |
||
26 | class UserPasswordCreateEvent extends Event { |
||
27 | const CREATE_PASSWORD = 'OCP\User::createPassword'; |
||
28 | |||
29 | /** @var string event name */ |
||
30 | protected $event; |
||
31 | /** @var array data*/ |
||
32 | protected $data; |
||
33 | |||
34 | /** |
||
35 | * UserPasswordCreateEvent constructor. |
||
36 | * |
||
37 | * @param string $event |
||
38 | * @param array $data |
||
39 | */ |
||
40 | public function __construct($event, $data = []) { |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getEvent() { |
||
51 | |||
52 | /** |
||
53 | * @return array |
||
54 | */ |
||
55 | public function getData() { |
||
58 | |||
59 | /** |
||
60 | * @param string $password |
||
61 | */ |
||
62 | public function setPassword($password) { |
||
65 | |||
66 | /** |
||
67 | * @return bool|mixed |
||
68 | */ |
||
69 | public function getPassword() { |
||
75 | } |