-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathFileInterface.php
More file actions
37 lines (29 loc) Β· 681 Bytes
/
FileInterface.php
File metadata and controls
37 lines (29 loc) Β· 681 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
<?php
declare(strict_types=1);
namespace Intervention\Image\Interfaces;
use Stringable;
interface FileInterface extends Stringable
{
/**
* Create file object from path in file system.
*/
public static function fromPath(string $path): self;
/**
* Save data in given path in file system.
*/
public function save(string $path): void;
/**
* Create stream resource from encoded data.
*
* @return resource
*/
public function toStream();
/**
* Return size in bytes.
*/
public function size(): int;
/**
* Transform file object into string.
*/
public function toString(): string;
}