-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathOriginInterface.php
More file actions
41 lines (32 loc) Β· 811 Bytes
/
OriginInterface.php
File metadata and controls
41 lines (32 loc) Β· 811 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
31
32
33
34
35
36
37
38
39
40
41
<?php
declare(strict_types=1);
namespace Intervention\Image\Interfaces;
use Intervention\Image\Format;
use Intervention\Image\MediaType;
interface OriginInterface
{
/**
* Return media type of origin.
*/
public function mediaType(): string;
/**
* Set media type of current instance.
*/
public function setMediaType(string|MediaType $type): self;
/**
* Return file path of origin.
*/
public function filePath(): ?string;
/**
* Set file path for origin.
*/
public function setFilePath(string $path): self;
/**
* Return file extension if origin was created from file path.
*/
public function fileExtension(): ?string;
/**
* Return format of the origin image.
*/
public function format(): Format;
}