-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace LdapRecord\Models\Events; | ||
|
||
class Renamed extends Event | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
namespace LdapRecord\Models\Events; | ||
|
||
use LdapRecord\Models\Model; | ||
|
||
class Renaming extends Event | ||
{ | ||
/** | ||
* The models RDN. | ||
* | ||
* @var string | ||
*/ | ||
protected $rdn; | ||
|
||
/** | ||
* The models new parent DN. | ||
* | ||
* @var string | ||
*/ | ||
protected $newParentDn; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param Model $model | ||
* @param string $rdn | ||
* @param string $newParentDn | ||
*/ | ||
public function __construct(Model $model, $rdn, $newParentDn) | ||
{ | ||
parent::__construct($model); | ||
|
||
$this->rdn = $rdn; | ||
$this->newParentDn = $newParentDn; | ||
} | ||
|
||
/** | ||
* Get the models RDN. | ||
* | ||
* @return string | ||
*/ | ||
public function getRdn() | ||
{ | ||
return $this->rdn; | ||
} | ||
|
||
/** | ||
* Get the models parent DN. | ||
* | ||
* @return string | ||
*/ | ||
public function getNewParentDn() | ||
{ | ||
return $this->newParentDn; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters