for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Zed\FirstData\Dependency\Service;
class FirstDataToUtilEncodingServiceBridge implements FirstDataToUtilEncodingServiceInterface
{
* @var \Spryker\Service\UtilEncoding\UtilEncodingServiceInterface
protected $utilEncodingService;
* @param \Spryker\Service\UtilEncoding\UtilEncodingServiceInterface $utilEncodingService
public function __construct($utilEncodingService)
$this->utilEncodingService = $utilEncodingService;
}
* @param mixed $value
* @param int|null $options
* @param int|null $depth
*
* @return string|null
public function encodeJson($value, $options = null, $depth = null)
return $this->utilEncodingService->encodeJson($value, $options, $depth);
* @param string $jsonValue
* @param bool $assoc
* @return mixed|null
public function decodeJson($jsonValue, $assoc = false, $depth = null, $options = null)
return $this->utilEncodingService->decodeJson($jsonValue, $assoc, $depth, $options);