Primo Committ
This commit is contained in:
28
vendor/fakerphp/faker/src/Faker/Extension/FileExtension.php
vendored
Normal file
28
vendor/fakerphp/faker/src/Faker/Extension/FileExtension.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Extension;
|
||||
|
||||
/**
|
||||
* @experimental This interface is experimental and does not fall under our BC promise
|
||||
*/
|
||||
interface FileExtension extends Extension
|
||||
{
|
||||
/**
|
||||
* Get a random MIME type
|
||||
*
|
||||
* @example 'video/avi'
|
||||
*/
|
||||
public function mimeType(): string;
|
||||
|
||||
/**
|
||||
* Get a random file extension (without a dot)
|
||||
*
|
||||
* @example avi
|
||||
*/
|
||||
public function extension(): string;
|
||||
|
||||
/**
|
||||
* Get a full path to a new real file on the system.
|
||||
*/
|
||||
public function filePath(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user