-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEncoderInterface.php
More file actions
30 lines (25 loc) · 569 Bytes
/
EncoderInterface.php
File metadata and controls
30 lines (25 loc) · 569 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);
/*
* This file is part of the brainbits transcoder package.
*
* (c) brainbits GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Brainbits\Transcoder\Encoder;
/**
* Encoder interface.
*/
interface EncoderInterface
{
/**
* Encode data.
*/
public function encode(string $data): string;
/**
* Returns true if type is supported, false otherwise.
*/
public function supports(?string $type): bool;
}