mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-19 22:31:14 +02:00
12 lines
202 B
PHP
12 lines
202 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\AbstractFactory;
|
|
|
|
class JsonParser implements Parser
|
|
{
|
|
public function parse(string $input): array
|
|
{
|
|
return json_decode($input, true);
|
|
}
|
|
}
|