Last active
November 1, 2017 11:48
-
-
Save thiagomarini/36399b2b0a5eb418f173b73859e9691b to your computer and use it in GitHub Desktop.
Example of interface with methods receiving
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
<?php | |
/** | |
* The implementation will know how to deal with RoyalMail, DHL, DPD etc... | |
*/ | |
interface CarrierServices | |
{ | |
/** | |
* @param LabelRequest $labelRequest | |
* @return LabelResponse | |
* @throws CarrierException | |
*/ | |
public function createLabel(LabelRequest $labelRequest): LabelResponse; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment