| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Metadata extends AbstractModel |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param $key |
||
| 15 | * @param $value |
||
| 16 | * |
||
| 17 | * @return $this |
||
| 18 | */ |
||
| 19 | public function addMetadata($key, $value) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $object |
||
| 28 | * |
||
| 29 | */ |
||
| 30 | public function import($object) |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Metadata will not use Str::ToCamelCase because we respect the merchant naming convention. |
||
| 39 | * |
||
| 40 | * @param bool $validation |
||
| 41 | * |
||
| 42 | * @return \stdClass |
||
| 43 | */ |
||
| 44 | public function export($validation = true) |
||
| 56 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: