2019-01-15 15:46:24 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace AirQuality\Actions;
|
|
|
|
|
2019-06-13 21:02:04 +00:00
|
|
|
/**
|
|
|
|
* Interface that defines the functionality of an action that requests can be routed to.
|
|
|
|
*/
|
2019-01-15 15:46:24 +00:00
|
|
|
interface IAction {
|
2019-06-13 21:02:04 +00:00
|
|
|
/**
|
|
|
|
* Handles the a request for the action.
|
|
|
|
* @return bool Whether the request was handled successfully or not.
|
|
|
|
*/
|
2019-01-15 17:02:24 +00:00
|
|
|
public function handle() : bool;
|
2019-01-15 15:46:24 +00:00
|
|
|
}
|