| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class AmazonpayToUtilEncodingBridge implements AmazonpayToUtilEncodingInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var \Spryker\Service\UtilEncoding\UtilEncodingServiceInterface |
||
| 15 | */ |
||
| 16 | protected $utilEncodingService; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param \Spryker\Service\UtilEncoding\UtilEncodingServiceInterface $utilEncodingService |
||
| 20 | */ |
||
| 21 | public function __construct($utilEncodingService) |
||
| 22 | { |
||
| 23 | $this->utilEncodingService = $utilEncodingService; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | * |
||
| 29 | * @api |
||
| 30 | * |
||
| 31 | * @param string $jsonValue |
||
| 32 | * @param int|null $options |
||
| 33 | * @param int|null $depth |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function encodeJson($jsonValue, $options = null, $depth = null) |
||
| 38 | { |
||
| 39 | return $this->utilEncodingService->encodeJson($jsonValue, $options, $depth); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | * |
||
| 45 | * @api |
||
| 46 | * |
||
| 47 | * @param string $jsonValue |
||
| 48 | * @param bool $assoc |
||
| 49 | * @param int|null $depth |
||
| 50 | * @param int|null $options |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function decodeJson($jsonValue, $assoc = false, $depth = null, $options = null) |
||
| 57 | } |
||
| 58 | |||
| 59 | } |
||
| 60 |