forked from flarum/flags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COM-749 Adds created and deleting events
- Loading branch information
1 parent
4a6d765
commit d3d2ac3
Showing
4 changed files
with
104 additions
and
1 deletion.
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
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
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,43 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Flarum. | ||
* | ||
* For detailed copyright and license information, please view the | ||
* LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Flarum\Flags\Event; | ||
|
||
use Flarum\Flags\Flag; | ||
use Flarum\User\User; | ||
|
||
class Created | ||
{ | ||
/** | ||
* @var Flag | ||
*/ | ||
public $flag; | ||
|
||
/** | ||
* @var User | ||
*/ | ||
public $actor; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $data; | ||
|
||
/** | ||
* @param Flag $flag | ||
* @param User $actor | ||
* @param array $data | ||
*/ | ||
public function __construct(Flag $flag, User $actor, array $data = []) | ||
{ | ||
$this->flag = $flag; | ||
$this->actor = $actor; | ||
$this->data = $data; | ||
} | ||
} |
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,43 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Flarum. | ||
* | ||
* For detailed copyright and license information, please view the | ||
* LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Flarum\Flags\Event; | ||
|
||
use Flarum\Flags\Flag; | ||
use Flarum\User\User; | ||
|
||
class Deleting | ||
{ | ||
/** | ||
* @var Flag | ||
*/ | ||
public $flag; | ||
|
||
/** | ||
* @var User | ||
*/ | ||
public $actor; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $data; | ||
|
||
/** | ||
* @param Flag $flag | ||
* @param User $actor | ||
* @param array $data | ||
*/ | ||
public function __construct(Flag $flag, User $actor, array $data = []) | ||
{ | ||
$this->flag = $flag; | ||
$this->actor = $actor; | ||
$this->data = $data; | ||
} | ||
} |