| @@ 14-34 (lines=21) @@ | ||
| 11 | use Illuminate\Broadcasting\InteractsWithSockets; |
|
| 12 | use Illuminate\Contracts\Broadcasting\ShouldBroadcast; |
|
| 13 | ||
| 14 | class LeaveImpersonation |
|
| 15 | { |
|
| 16 | use Dispatchable, InteractsWithSockets, SerializesModels; |
|
| 17 | ||
| 18 | /** @var Authenticatable */ |
|
| 19 | public $impersonator; |
|
| 20 | ||
| 21 | /** @var Authenticatable */ |
|
| 22 | public $impersonated; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Create a new event instance. |
|
| 26 | * |
|
| 27 | * @return void |
|
| 28 | */ |
|
| 29 | public function __construct(Authenticatable $impersonator, Authenticatable $impersonated) |
|
| 30 | { |
|
| 31 | $this->impersonator = $impersonator; |
|
| 32 | $this->impersonated = $impersonated; |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||
| @@ 14-34 (lines=21) @@ | ||
| 11 | use Illuminate\Broadcasting\InteractsWithSockets; |
|
| 12 | use Illuminate\Contracts\Broadcasting\ShouldBroadcast; |
|
| 13 | ||
| 14 | class TakeImpersonation |
|
| 15 | { |
|
| 16 | use Dispatchable, InteractsWithSockets, SerializesModels; |
|
| 17 | ||
| 18 | /** @var Authenticatable */ |
|
| 19 | public $impersonator; |
|
| 20 | ||
| 21 | /** @var Authenticatable */ |
|
| 22 | public $impersonated; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Create a new event instance. |
|
| 26 | * |
|
| 27 | * @return void |
|
| 28 | */ |
|
| 29 | public function __construct(Authenticatable $impersonator, Authenticatable $impersonated) |
|
| 30 | { |
|
| 31 | $this->impersonator = $impersonator; |
|
| 32 | $this->impersonated = $impersonated; |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||