1 | <?php |
||
11 | class NativeTypesHandler implements DataTypeHandlerInterface |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | 4 | public function toResource($value, string $type, array $parameters) |
|
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | 4 | public function fromResource($value, string $type, array $parameters) |
|
28 | |||
29 | /** |
||
30 | * Process native type |
||
31 | * |
||
32 | * @param mixed $value |
||
33 | * @param string $type |
||
34 | * @return mixed |
||
35 | */ |
||
36 | 8 | protected function process($value, string $type) |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function supports(): array |
||
60 | } |