Skip to content

Commit 3ea1d10

Browse files
committed
Add type constants
1 parent 025a7f1 commit 3ea1d10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/OEmbed.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
class OEmbed{
99

10+
public const TYPE_JSON = 'application/json+oembed';
11+
public const TYPE_XML = 'text/xml+oembed';
12+
1013
public static function decode(string $data,string $format='xml'): ?array{
1114
if($format==='json'){
1215
return self::decodeJSON($data);

0 commit comments

Comments
 (0)