*/ final class ComponentStatusWasUpdatedEvent implements ComponentEventInterface { /** * The component that was updated. * * @var \CachetHQ\Cachet\Models\Component */ public $component; /** * The original status of the component. * * @var int */ public $original_status; /** * The new status of the component. * * @var int */ public $new_status; /** * Create a new component was updated event instance. * * @param \CachetHQ\Cachet\Models\Component $component * @param int $original_status * @param int $new_status * * @return void */ public function __construct(Component $component, $original_status, $new_status) { $this->component = $component; $this->original_status = $original_status; $this->new_status = $new_status; } }