Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit c20d916

Browse files
committed
Added Imported event
1 parent 4f7bae9 commit c20d916

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/Events/Imported.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace Adldap\Laravel\Events;
4+
5+
use Adldap\Models\User;
6+
use Illuminate\Database\Eloquent\Model;
7+
8+
class Imported
9+
{
10+
/**
11+
* The LDAP user that was successfully imported.
12+
*
13+
* @var User
14+
*/
15+
public $user;
16+
17+
/**
18+
* The model belonging to the user that was imported.
19+
*
20+
* @var Model
21+
*/
22+
public $model;
23+
24+
/**
25+
* Constructor.
26+
*
27+
* @param User $user
28+
* @param Model $model
29+
*/
30+
public function __construct(User $user, Model $model)
31+
{
32+
$this->user = $user;
33+
$this->model = $model;
34+
}
35+
}

0 commit comments

Comments
 (0)