danbelden/php-siren

Support toDocument from array data alongside json data

Opened this issue · 0 comments

Currently the handler only supports converting to document from json data.

This means you need to encode the array only to have it decoded when converting to document.

It would be nice if the handler supported a toDocumentFromArray() method:

public function toDocumentFromArray(array $array)
{
    // Code to return siren document
}