| 1 | <?php |
||
| 14 | class GenericFileFactory implements FileFactoryInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Mime type Factory. |
||
| 18 | * |
||
| 19 | * @var MimeTypeFactoryInterface |
||
| 20 | */ |
||
| 21 | protected $mimeType; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Size Factory. |
||
| 25 | * |
||
| 26 | * @var SizeFactoryInterface |
||
| 27 | */ |
||
| 28 | protected $size; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * GenericFileFactory constructor. |
||
| 32 | * |
||
| 33 | * @param MimeTypeFactoryInterface $mimeTypeFactory |
||
| 34 | * @param SizeFactoryInterface $sizeFactory |
||
| 35 | */ |
||
| 36 | 3 | public function __construct( |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Make instances of GenericFile. |
||
| 46 | * |
||
| 47 | * @param string $name |
||
| 48 | * @param string $filePath |
||
| 49 | * |
||
| 50 | * @return FileInterface |
||
| 51 | */ |
||
| 52 | 3 | public function make($name, $filePath) |
|
| 65 | } |
||
| 66 |