44 lines
762 B
PHP
44 lines
762 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace CachetHQ\Cachet\Commands\User;
|
|
|
|
final class InviteTeamMemberCommand
|
|
{
|
|
/**
|
|
* The invte emails.
|
|
*
|
|
* @var string[]
|
|
*/
|
|
public $emails;
|
|
|
|
/**
|
|
* The validation rules.
|
|
*
|
|
* @var string[]
|
|
*/
|
|
public $rules = [
|
|
'emails' => 'required|array|email',
|
|
];
|
|
|
|
/**
|
|
* Create a new invite team member command instance.
|
|
*
|
|
* @param string[] $email
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(array $emails)
|
|
{
|
|
$this->emails = $emails;
|
|
}
|
|
}
|