blob: 20de0b7a697bc2899b415f591530f3bb816f82d8 [file] [log] [blame]
<?php
namespace LdapRecord\Models\Events;
use LdapRecord\Models\Model;
abstract class Event
{
/**
* The model that the event is being triggered on.
*
* @var Model
*/
protected $model;
/**
* Constructor.
*
* @param Model $model
*/
public function __construct(Model $model)
{
$this->model = $model;
}
/**
* Returns the model that generated the event.
*
* @return Model
*/
public function getModel()
{
return $this->model;
}
}