| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | interface IBox |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param array $options |
||
| 14 | */ |
||
| 15 | public function setOptions($options); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public function getOptions(); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param \Bpost\BpostApiClient\Bpost\Order\Box\Option\Option $option |
||
| 24 | */ |
||
| 25 | public function addOption(Option\Option $option); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $product |
||
| 29 | */ |
||
| 30 | public function setProduct($product); |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getProduct(); |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @remark should be implemented by the child class |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public static function getPossibleProductValues(); |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Return the object as an array for usage in the XML |
||
| 45 | * @param \DomDocument $document |
||
| 46 | * @param string $prefix |
||
| 47 | * @return \DomElement |
||
| 48 | */ |
||
| 49 | public function toXML(\DOMDocument $document, $prefix = null); |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param \SimpleXMLElement $xml |
||
| 53 | * @return self |
||
| 54 | */ |
||
| 55 | public static function createFromXML(\SimpleXMLElement $xml); |
||
| 56 | } |
||
| 57 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@returndoc comment to communicate to implementors of these methods what they are expected to return.