-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Created and Deleting events (#35)
- Loading branch information
Showing
5 changed files
with
110 additions
and
2 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
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; | ||
} | ||
} |
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