File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 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<[email protected] > 9+ * @license http://www.opensource.org/licenses/mit-license.php MIT
10+ * @link http://phpdoc.org
11+ */
12+
13+ namespace phpDocumentor \Reflection ;
14+
15+ /**
16+ * Interface for files processed by the ProjectFactory
17+ */
18+ interface 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+ }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ interface ProjectFactory
2020 * Creates a project from the set of files.
2121 *
2222 * @param string $name
23- * @param string [] $files
23+ * @param File [] $files
2424 * @return Project
2525 */
2626 public function create ($ name , array $ files );
You can’t perform that action at this time.
0 commit comments