Fenos\Notifynder\Parsers\NotifynderParser::extraToArray PHP Méthode

extraToArray() protected méthode

Trying to transform extra in from few data types to array type.
protected extraToArray ( $extra ) : array | mixed
$extra
Résultat array | mixed
    protected function extraToArray($extra)
    {
        if ($this->isJson($extra)) {
            $extra = json_decode($extra, true);
            return $extra;
        } elseif ($extra instanceof ExtraParams) {
            $extra = $extra->toArray();
            return $extra;
        }
    }