-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from neelkanthk/v1.3.0
V1.3.0
- Loading branch information
Showing
7 changed files
with
333 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
namespace Neelkanth\Laravel\Surveillance\Interfaces; | ||
|
||
use Illuminate\Http\Request; | ||
|
||
interface SurveillanceLogInterface | ||
{ | ||
/** | ||
* Retrieve the data from Request for logging | ||
* | ||
* @param Request $request | ||
*/ | ||
public function makeLogFromRequest(Request $request); | ||
|
||
/** | ||
* Write the log in the database | ||
* | ||
* @param [array] $dataToLog | ||
*/ | ||
public function writeLog($dataToLog = null); | ||
|
||
/** | ||
* Return a paginated and filtered list of the logs | ||
* | ||
* @param [array] $filters | ||
* @return array | ||
*/ | ||
public function getPaginatedAndFilteredLogs($filters = array()); | ||
|
||
/** | ||
* Get a single log by its id from database | ||
* | ||
* @param [int] $id | ||
* @return void | ||
*/ | ||
public function getLogById(int $id); | ||
|
||
/** | ||
* Delete log by its id from database | ||
* | ||
* @param [int] $id | ||
* @return void | ||
*/ | ||
public function deleteLogById(int $id); | ||
|
||
/** | ||
* Get count of total logs from database | ||
* @return int | ||
*/ | ||
public function totalLogs(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters