Added new Beacon handling code

This commit is contained in:
James Brooks
2016-08-03 17:44:21 +01:00
parent dd2e77d479
commit 778664b20a
14 changed files with 446 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Integrations\Contracts;
/**
* This is the beacon interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface Beacon
{
/**
* Has the install enabled Cachet beacon?
*
* @return bool
*/
public function enabled();
/**
* Send a beacon to our server.
*
* @return void
*/
public function send();
}