Merge pull request #1199 from cachethq/events

Added Event Interfaces
This commit is contained in:
Graham Campbell 2015-12-07 21:59:01 +00:00
commit c84c49c761
28 changed files with 154 additions and 21 deletions

View File

@ -0,0 +1,19 @@
<?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\Events\Component;
use CachetHQ\Cachet\Events\EventInterface;
interface ComponentEventInterface extends EventInterface
{
//
}

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Component;
use CachetHQ\Cachet\Models\Component; use CachetHQ\Cachet\Models\Component;
class ComponentWasAddedEvent class ComponentWasAddedEvent implements ComponentEventInterface
{ {
/** /**
* The component that was added. * The component that was added.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Component;
use CachetHQ\Cachet\Models\Component; use CachetHQ\Cachet\Models\Component;
class ComponentWasRemovedEvent class ComponentWasRemovedEvent implements ComponentEventInterface
{ {
/** /**
* The component that was removed. * The component that was removed.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Component;
use CachetHQ\Cachet\Models\Component; use CachetHQ\Cachet\Models\Component;
class ComponentWasUpdatedEvent class ComponentWasUpdatedEvent implements ComponentEventInterface
{ {
/** /**
* The component that was updated. * The component that was updated.

View File

@ -0,0 +1,19 @@
<?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\Events\ComponentGroup;
use CachetHQ\Cachet\Events\EventInterface;
interface ComponentGroupEventInterface extends EventInterface
{
//
}

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\ComponentGroup;
use CachetHQ\Cachet\Models\ComponentGroup; use CachetHQ\Cachet\Models\ComponentGroup;
class ComponentGroupWasAddedEvent class ComponentGroupWasAddedEvent implements ComponentGroupEventInterface
{ {
/** /**
* The component group that was added. * The component group that was added.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\ComponentGroup;
use CachetHQ\Cachet\Models\ComponentGroup; use CachetHQ\Cachet\Models\ComponentGroup;
class ComponentGroupWasRemovedEvent class ComponentGroupWasRemovedEvent implements ComponentGroupEventInterface
{ {
/** /**
* The component group that was removed. * The component group that was removed.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\ComponentGroup;
use CachetHQ\Cachet\Models\ComponentGroup; use CachetHQ\Cachet\Models\ComponentGroup;
class ComponentGroupWasUpdatedEvent class ComponentGroupWasUpdatedEvent implements ComponentGroupEventInterface
{ {
/** /**
* The component group that was updated. * The component group that was updated.

View File

@ -0,0 +1,17 @@
<?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\Events;
interface EventInterface
{
//
}

View File

@ -0,0 +1,19 @@
<?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\Events\Incident;
use CachetHQ\Cachet\Events\EventInterface;
interface IncidentEventInterface extends EventInterface
{
//
}

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Incident;
use CachetHQ\Cachet\Models\Incident; use CachetHQ\Cachet\Models\Incident;
class IncidentWasRemovedEvent class IncidentWasRemovedEvent implements IncidentEventInterface
{ {
/** /**
* The incident that has been removed. * The incident that has been removed.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Incident;
use CachetHQ\Cachet\Models\Incident; use CachetHQ\Cachet\Models\Incident;
class IncidentWasReportedEvent class IncidentWasReportedEvent implements IncidentEventInterface
{ {
/** /**
* The incident that has been reported. * The incident that has been reported.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Incident;
use CachetHQ\Cachet\Models\Incident; use CachetHQ\Cachet\Models\Incident;
class IncidentWasUpdatedEvent class IncidentWasUpdatedEvent implements IncidentEventInterface
{ {
/** /**
* The incident that has been updated. * The incident that has been updated.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Incident;
use CachetHQ\Cachet\Models\Incident; use CachetHQ\Cachet\Models\Incident;
class MaintenanceWasScheduledEvent class MaintenanceWasScheduledEvent implements IncidentEventInterface
{ {
/** /**
* The incident that has been reported. * The incident that has been reported.

View File

@ -0,0 +1,19 @@
<?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\Events\Invite;
use CachetHQ\Cachet\Events\EventInterface;
interface InviteEventInterface extends EventInterface
{
//
}

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Invite;
use CachetHQ\Cachet\Models\Invite; use CachetHQ\Cachet\Models\Invite;
final class InviteWasClaimed final class InviteWasClaimed implements InviteEventInterface
{ {
/** /**
* The invite that has been claimed. * The invite that has been claimed.

View File

@ -0,0 +1,19 @@
<?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\Events\Metric;
use CachetHQ\Cachet\Events\EventInterface;
interface MetricEventInterface extends EventInterface
{
//
}

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Metric;
use CachetHQ\Cachet\Models\MetricPoint; use CachetHQ\Cachet\Models\MetricPoint;
class MetricPointWasAddedEvent class MetricPointWasAddedEvent implements MetricEventInterface
{ {
/** /**
* The metric point that was added. * The metric point that was added.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Metric;
use CachetHQ\Cachet\Models\MetricPoint; use CachetHQ\Cachet\Models\MetricPoint;
class MetricPointWasRemovedEvent class MetricPointWasRemovedEvent implements MetricEventInterface
{ {
/** /**
* The metric point that was removed. * The metric point that was removed.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Metric;
use CachetHQ\Cachet\Models\MetricPoint; use CachetHQ\Cachet\Models\MetricPoint;
class MetricPointWasUpdatedEvent class MetricPointWasUpdatedEvent implements MetricEventInterface
{ {
/** /**
* The metric point that was updated. * The metric point that was updated.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Metric;
use CachetHQ\Cachet\Models\Metric; use CachetHQ\Cachet\Models\Metric;
class MetricWasAddedEvent class MetricWasAddedEvent implements MetricEventInterface
{ {
/** /**
* The metric that was added. * The metric that was added.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Metric;
use CachetHQ\Cachet\Models\Metric; use CachetHQ\Cachet\Models\Metric;
class MetricWasRemovedEvent class MetricWasRemovedEvent implements MetricEventInterface
{ {
/** /**
* The metric that was removed. * The metric that was removed.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Metric;
use CachetHQ\Cachet\Models\Metric; use CachetHQ\Cachet\Models\Metric;
class MetricWasUpdatedEvent class MetricWasUpdatedEvent implements MetricEventInterface
{ {
/** /**
* The metric that was updated. * The metric that was updated.

View File

@ -0,0 +1,19 @@
<?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\Events\Subscriber;
use CachetHQ\Cachet\Events\EventInterface;
interface SubscriberEventInterface extends EventInterface
{
//
}

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Subscriber;
use CachetHQ\Cachet\Models\Subscriber; use CachetHQ\Cachet\Models\Subscriber;
class SubscriberHasSubscribedEvent class SubscriberHasSubscribedEvent implements SubscriberEventInterface
{ {
/** /**
* The subscriber who has subscribed. * The subscriber who has subscribed.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Subscriber;
use CachetHQ\Cachet\Models\Subscriber; use CachetHQ\Cachet\Models\Subscriber;
class SubscriberHasUnsubscribedEvent class SubscriberHasUnsubscribedEvent implements SubscriberEventInterface
{ {
/** /**
* The subscriber who has unsubscribed. * The subscriber who has unsubscribed.

View File

@ -13,7 +13,7 @@ namespace CachetHQ\Cachet\Events\Subscriber;
use CachetHQ\Cachet\Models\Subscriber; use CachetHQ\Cachet\Models\Subscriber;
class SubscriberHasVerifiedEvent class SubscriberHasVerifiedEvent implements SubscriberEventInterface
{ {
/** /**
* The subscriber who has verified. * The subscriber who has verified.

View File

@ -11,7 +11,9 @@
namespace CachetHQ\Cachet\Events\User; namespace CachetHQ\Cachet\Events\User;
interface UserEventInterface use CachetHQ\Cachet\Events\EventInterface;
interface UserEventInterface extends EventInterface
{ {
// //
} }