mirror of
https://github.com/flarum/core.git
synced 2025-10-15 00:44:40 +02:00
Add group management actions to API
This commit is contained in:
30
src/Core/Groups/Commands/CreateGroup.php
Normal file
30
src/Core/Groups/Commands/CreateGroup.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php namespace Flarum\Core\Groups\Commands;
|
||||
|
||||
use Flarum\Core\Users\User;
|
||||
|
||||
class CreateGroup
|
||||
{
|
||||
/**
|
||||
* The user performing the action.
|
||||
*
|
||||
* @var User
|
||||
*/
|
||||
public $actor;
|
||||
|
||||
/**
|
||||
* The attributes of the new group.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @param User $actor The user performing the action.
|
||||
* @param array $data The attributes of the new group.
|
||||
*/
|
||||
public function __construct(User $actor, array $data)
|
||||
{
|
||||
$this->actor = $actor;
|
||||
$this->data = $data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user