Fixed commands

This commit is contained in:
Graham Campbell
2015-12-06 11:32:30 +00:00
parent f3d2b5ba9c
commit 5fd3abcbd0
7 changed files with 14 additions and 10 deletions

View File

@@ -116,7 +116,7 @@ final class ReportIncidentCommand
*
* @return void
*/
public function __construct($name, $status, $message, $visible, $component_id, $component_status, $notify, $incident_date, $template, $template_vars)
public function __construct($name, $status, $message, $visible, $component_id, $component_status, $notify, $incident_date, $template, array $template_vars = null)
{
$this->name = $name;
$this->status = $status;

View File

@@ -125,7 +125,7 @@ final class UpdateIncidentCommand
*
* @return void
*/
public function __construct(Incident $incident, $name, $status, $message, $visible, $component_id, $component_status, $notify, $incident_date, $template, $template_vars)
public function __construct(Incident $incident, $name, $status, $message, $visible, $component_id, $component_status, $notify, $incident_date, $template, array $template_vars = null)
{
$this->incident = $incident;
$this->name = $name;

View File

@@ -11,23 +11,25 @@
namespace CachetHQ\Cachet\Commands\Invite;
use CachetHQ\Cachet\Models\Invite;
final class ClaimInviteCommand
{
/**
* The invte to mark as claimed.
*
* @var \CachetHQ\Cachet\Model\Invite
* @var \CachetHQ\Cachet\Models\Invite
*/
public $invite;
/**
* Create a new claim invite command instance.
*
* @param \CachetHQ\Cachet\Model\Invite $invite
* @param \CachetHQ\Cachet\Models\Invite $invite
*
* @return void
*/
public function __construct($invite)
public function __construct(Invite $invite)
{
$this->invite = $invite;
}

View File

@@ -25,7 +25,7 @@ final class UnsubscribeSubscriberCommand
/**
* Create a unsubscribe subscriber command instance.
*
* @param string $subscriber
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
*
* @return void
*/

View File

@@ -25,7 +25,7 @@ final class VerifySubscriberCommand
/**
* Create a verify subscriber command instance.
*
* @param string $subscriber
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
*
* @return void
*/

View File

@@ -11,6 +11,8 @@
namespace CachetHQ\Cachet\Commands\User;
use CachetHQ\Cachet\Models\User;
final class GenerateApiTokenCommand
{
/**
@@ -27,7 +29,7 @@ final class GenerateApiTokenCommand
*
* @return void
*/
public function __construct($user)
public function __construct(User $user)
{
$this->user = $user;
}

View File

@@ -32,11 +32,11 @@ final class InviteTeamMemberCommand
/**
* Create a new invite team member command instance.
*
* @param array $email
* @param string[] $email
*
* @return void
*/
public function __construct($emails)
public function __construct(array $emails)
{
$this->emails = $emails;
}