mirror of
https://github.com/halaxa/json-machine.git
synced 2025-02-22 23:22:27 +01:00
21 lines
329 B
PHP
21 lines
329 B
PHP
<?php
|
|
|
|
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;
|
|
}
|
|
}
|