Skip to content

Commit

Permalink
Add type constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Oct 2, 2024
1 parent 025a7f1 commit 3ea1d10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/OEmbed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ea1d10

Please sign in to comment.