| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentValidator\Contracts; |
| 4 |
|
| 5 |
interface File |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Returns whether the file was uploaded successfully. |
| 9 |
* |
| 10 |
* @return bool |
| 11 |
*/ |
| 12 |
public function isValid(); |
| 13 |
|
| 14 |
/** |
| 15 |
* Gets the path without filename |
| 16 |
* |
| 17 |
* @return string |
| 18 |
*/ |
| 19 |
public function getPath(); |
| 20 |
|
| 21 |
/** |
| 22 |
* Take an educated guess of the file's extension. |
| 23 |
* |
| 24 |
* @return mixed|null |
| 25 |
*/ |
| 26 |
public function guessExtension(); |
| 27 |
|
| 28 |
/** |
| 29 |
* Returns the original file extension. |
| 30 |
* |
| 31 |
* @return string |
| 32 |
*/ |
| 33 |
public function getClientOriginalExtension(); |
| 34 |
} |
| 35 |
|