diff --git a/src/OEmbed.php b/src/OEmbed.php index 46a929a..9deec28 100644 --- a/src/OEmbed.php +++ b/src/OEmbed.php @@ -7,6 +7,9 @@ class OEmbed{ + public const TYPE_JSON = 'application/json+oembed'; + public const TYPE_XML = 'text/xml+oembed'; + public static function decode(string $data,string $format='xml'): ?array{ if($format==='json'){ return self::decodeJSON($data);