| 1 | <?php |
||
| 16 | class EventEditorHeartbeat |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Domain $domain |
||
| 21 | */ |
||
| 22 | protected $domain; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var EE_Environment_Config $environment |
||
| 26 | */ |
||
| 27 | protected $environment; |
||
| 28 | |||
| 29 | |||
| 30 | /** |
||
| 31 | * EventEditorHeartbeat constructor. |
||
| 32 | * |
||
| 33 | * @param Domain $domain |
||
| 34 | * @param EE_Environment_Config $environment |
||
| 35 | */ |
||
| 36 | public function __construct(Domain $domain, EE_Environment_Config $environment) |
||
| 44 | |||
| 45 | |||
| 46 | /** |
||
| 47 | * This will be used to listen for any heartbeat data packages coming via the WordPress heartbeat API and handle |
||
| 48 | * accordingly. |
||
| 49 | * |
||
| 50 | * @param array $response The existing heartbeat response array. |
||
| 51 | * @param array $data The incoming data package. |
||
| 52 | * @return array possibly appended response. |
||
| 53 | */ |
||
| 54 | public function heartbeatResponse($response, $data) |
||
| 67 | } |
||
| 68 |