This repository has been archived by the owner on May 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed the phpcs.xml definition. Added a SignerInterface interface.
- Loading branch information
Showing
3 changed files
with
45 additions
and
87 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* Copyright (c) 2014 Ryan Parman. | ||
* | ||
* http://opensource.org/licenses/Apache2.0 | ||
*/ | ||
|
||
namespace Skyzyx\Signer; | ||
|
||
interface SignerInterface | ||
{ | ||
/** | ||
* Gets the self key that was set in the constructor. | ||
* | ||
* @return string The self key. | ||
*/ | ||
public function getSelfKey(); | ||
|
||
/** | ||
* Gets the client key that was set in the constructor. | ||
* | ||
* @return string The client key. | ||
*/ | ||
public function getClientId(); | ||
|
||
/** | ||
* Gets the client secret that was set in the constructor. | ||
* | ||
* @return string The client secret. | ||
*/ | ||
public function getClientSecret(); | ||
|
||
/** | ||
* Sign the payload to produce a signature for its contents. | ||
* | ||
* @param array $payload The data to generate a signature for. | ||
* @return string The signature for the payload contents. | ||
*/ | ||
public function sign(array $payload); | ||
} |