1<?php
2/**
3 * This file is part of phpDocumentor.
4 *
5 * For the full copyright and license information, please view the LICENSE
6 * file that was distributed with this source code.
7 *
8 * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10 * @link      http://phpdoc.org
11 */
12
13namespace phpDocumentor\Reflection;
14
15/**
16 * Interface for files processed by the ProjectFactory
17 */
18interface File
19{
20    /**
21     * Returns the content of the file as a string.
22     *
23     * @return string
24     */
25    public function getContents();
26
27    /**
28     * Returns md5 hash of the file.
29     *
30     * @return string
31     */
32    public function md5();
33
34    /**
35     * Returns an relative path to the file.
36     *
37     * @return string
38     */
39    public function path();
40}
41