Nathanmac\Utilities\Parser\Parser::parse PHP Method

parse() public method

Parse payload string using given formatter.
public parse ( string $payload, Nathanmac\Utilities\Parser\Formats\FormatInterface $format ) : array
$payload string
$format Nathanmac\Utilities\Parser\Formats\FormatInterface
return array
    public function parse($payload, FormatInterface $format)
    {
        return $format->parse($payload);
    }