This repository has been archived by the owner on Apr 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented enum for request methods
Changed the order of parameters for the request object constructor Removed the method definitions in the request interface
- Loading branch information
1 parent
5d5bbfd
commit 6e5ce42
Showing
7 changed files
with
108 additions
and
70 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,58 @@ | ||
<?php | ||
/** | ||
* Copyright (C) Jyxon, Inc. All rights reserved. | ||
* See LICENSE for license details. | ||
*/ | ||
namespace Ulrack\Transaction\Common; | ||
|
||
use Ulrack\Enum\Enum; | ||
|
||
/** | ||
* @method static MethodEnum GET() | ||
* @method static MethodEnum POST() | ||
* @method static MethodEnum PUT() | ||
* @method static MethodEnum DELETE() | ||
* @method static MethodEnum PATCH() | ||
*/ | ||
class MethodEnum extends Enum | ||
{ | ||
/** | ||
* The request method GET. | ||
* Retrieves information with a request. | ||
* | ||
* @var string | ||
*/ | ||
const GET = 'get'; | ||
|
||
/** | ||
* The request method POST. | ||
* Creates new resources with a request. | ||
* | ||
* @var string | ||
*/ | ||
const POST = 'post'; | ||
|
||
/** | ||
* The request method PUT. | ||
* Updates resource with a request. | ||
* | ||
* @var string | ||
*/ | ||
const PUT = 'put'; | ||
|
||
/** | ||
* The request method DELETE. | ||
* Deletes a resource with a request. | ||
* | ||
* @var string | ||
*/ | ||
const DELETE = 'delete'; | ||
|
||
/** | ||
* The request method PATCH. | ||
* Update a resource partially with a request. | ||
* | ||
* @var string | ||
*/ | ||
const PATCH = 'patch'; | ||
} |
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