mirror of
https://github.com/halaxa/json-machine.git
synced 2025-07-16 12:06:23 +02:00
23 lines
355 B
PHP
23 lines
355 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace JsonMachineTest\JsonDecoder;
|
|
|
|
use JsonMachine\JsonDecoder\ItemDecoder;
|
|
|
|
class StubDecoder implements ItemDecoder
|
|
{
|
|
private $decoded;
|
|
|
|
public function __construct($decoded)
|
|
{
|
|
$this->decoded = $decoded;
|
|
}
|
|
|
|
public function decode($jsonValue)
|
|
{
|
|
return $this->decoded;
|
|
}
|
|
}
|