FileManagerInterface.php 769 bytes
<?php
/*
 * Copyright (C) 2015 IRSTEA
 * All rights reserved.
 */
namespace Irstea\FileUploadBundle\Model;
/**
 * Description of FileManager
interface FileManagerInterface
    /**
     * @param string $id
     * @return UploadedFileInterface
    public function get($id);
    /**
     * @param string $name
     * @param int $size
     * @param string $mimeType
     * @param int $lastModified
     * @return UploadedFileInterface
    public function create($name, $size, $mimeType, $lastModified);
    /**
     * @param UploadedFileInterface $file
    public function delete(UploadedFileInterface $file);
    /**
     * @param UploadedFileInterface $file
    public function completed(UploadedFileInterface $file);