UploadedFileInterface.php 4.03 KiB
<?php
/*
 * Copyright (C) 2015 IRSTEA
 * All rights reserved.
 */
namespace Irstea\FileUploadBundle\Model;
use DateTime;
/**
 * @author Guillaume Perréal <guillaume.perreal@irstea.fr>
interface UploadedFileInterface
    const ETAT_EN_COURS = 'en-cours';
    const ETAT_ORPHELIN = 'orphelin';
    const ETAT_NORMAL   = 'normal';
    const ETAT_CORROMPU = 'corrompu';
    const ETAT_MANQUANT = 'manquant';
    const ETAT_REJETE   = 'rejete';
    /**
     * Get id
     * @return integer
    public function getId();
    /**
     * Set originalFilename
     * @param string $displayName
     * @return UploadedFileInterface
    public function setDisplayName($displayName);
    /**
     * Get originalFilename
     * @return string
    public function getDisplayName();
    /**
     * @param string $description
     * @return UploadedFileInterface
    public function setDescription($description = null);
    /**
     * @return string
    public function getDescription();
    /**
     * Get path
     * @return string
    public function getPath();
    /**
     * Set path
     * @param string $path
     * @return UploadedFileInterface
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
public function setPath($path); /** Change le chemin d'un fichier sans changer le nom. * * @param string $newDir Nouveau répertoire * @return UploadedFileInterface */ public function moveTo($newDir); /** * Set mimeType * * @param string $mimeType * @return UploadedFileInterface */ public function setMimeType($mimeType); /** * Get mimeType * * @return string */ public function getMimeType(); /** * Set size * * @param integer $size * @return UploadedFileInterface */ public function setSize($size); /** * Get size * * @return integer */ public function getSize(); /** * Set checksum * * @param string $checksum * @return UploadedFileInterface */ public function setChecksum($checksum); /** * Get checksum * * @return string */ public function getChecksum(); /** * Set etat * * @param string $etat * @return UploadedFileInterface */ public function setEtat($etat); /** * Get etat * * @return string */ public function getEtat(); /**