| Total Complexity | 2 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 19 | class PriorityChangedEvent extends Event | ||
| 20 | { | ||
| 21 | const CHANGED = 'priority.changed'; | ||
| 22 | |||
| 23 | /** @var PrioritisedInterface */ | ||
| 24 | private $item; | ||
| 25 | /** @var float */ | ||
| 26 | private $priority; | ||
| 27 | /** @var float|null */ | ||
| 28 | private $oldPriority; | ||
| 29 | |||
| 30 | /** | ||
| 31 | * RunEvent constructor. | ||
| 32 | * | ||
| 33 | * @param PrioritisedInterface $item | ||
| 34 | * @param float $priority | ||
| 35 | * @param float|null $oldPriority | ||
| 36 | */ | ||
| 37 | 4 | public function __construct(PrioritisedInterface $item, $priority, $oldPriority = null) | |
| 42 | 4 | } | |
| 43 | |||
| 44 | /** | ||
| 45 | * @return PrioritisedInterface | ||
| 46 | */ | ||
| 47 | 2 | public function getItem() | |
| 52 |