| 1 | <?php |
||
| 11 | class AuthenticationEvent extends Event |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Events triggered by eventmanager |
||
| 15 | */ |
||
| 16 | const EVENT_AUTH = 'auth'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var AdapterInterface |
||
| 20 | */ |
||
| 21 | protected $adapter; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Result |
||
| 25 | */ |
||
| 26 | protected $result; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Constructor |
||
| 30 | * |
||
| 31 | * Accept a target and its parameters. |
||
| 32 | * |
||
| 33 | * @param string $name Event name |
||
| 34 | * @param string|object $target |
||
| 35 | * @param array|ArrayAccess $params |
||
| 36 | */ |
||
| 37 | public function __construct($name = null, $target = null, $params = null) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param AdapterInterface $adapter |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setAdapter(AdapterInterface $adapter) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return AdapterInterface |
||
| 54 | */ |
||
| 55 | public function getAdapter() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param Result $result |
||
| 62 | * @return $this |
||
| 63 | */ |
||
| 64 | public function setResult(Result $result) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return Result |
||
| 72 | */ |
||
| 73 | public function getResult() |
||
| 77 | } |
||
| 78 |