This repository has been archived by the owner on Jul 25, 2023. 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.
Merge pull request #49 from meanbee/48-apply-grumphp-changes
48: Apply Grumphp refactoring to the library
- Loading branch information
Showing
5 changed files
with
715 additions
and
290 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,47 @@ | ||
<?php | ||
/** | ||
* Meanbee Royal Mail PHP Library | ||
* | ||
* PHP version 5.6 | ||
* | ||
* @category Meanbee | ||
* @package Meanbee/royalmail-php-library | ||
* @author Meanbee Limited <hello@meanbee.com> | ||
* @copyright 2016 Meanbee Limited (http://www.meanbee.com) | ||
* @license OSL v. 3.0 | ||
* @link http://github.com/meanbee/royalmail-php-library | ||
*/ | ||
|
||
namespace Meanbee\Royalmail; | ||
|
||
/** | ||
* Interface CarrierInterface | ||
* Allows for a generic interface of carrier to account for any future carriers | ||
* to be added. | ||
* | ||
* @category Meanbee | ||
* @package Meanbee\Royalmail | ||
* @author Meanbee Limited <hello@meanbee.com> | ||
* @license OSL v. 3.0 | ||
* @link http://github.com/meanbee/royalmail-php-library | ||
*/ | ||
interface CarrierInterface | ||
{ | ||
|
||
/** | ||
* Get methods and rates based on package conditions | ||
* | ||
* @param $country_code | ||
* @param $package_value | ||
* @param $package_weight | ||
* @param $ignore_package_value | ||
* @param string $country_code - Country code package is going to | ||
* @param int $package_value - Package value | ||
* @param int $package_weight - Package weight | ||
* @param bool $ignore_package_value - Whether to ignore package value or not | ||
* | ||
* @return array | ||
*/ | ||
public function getRates($country_code, $package_value, $package_weight, $ignore_package_value = false); | ||
public function getRates( | ||
$country_code, | ||
$package_value, | ||
$package_weight, | ||
$ignore_package_value = false | ||
); | ||
} |
Oops, something went wrong.