-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from jaapio/feature/FileInterface
Project factory accepts File implementations only
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* This file is part of phpDocumentor. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @copyright 2010-2015 Mike van Riel<[email protected]> | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT | ||
* @link http://phpdoc.org | ||
*/ | ||
|
||
namespace phpDocumentor\Reflection; | ||
|
||
/** | ||
* Interface for files processed by the ProjectFactory | ||
*/ | ||
interface File | ||
{ | ||
/** | ||
* Returns the content of the file as a string. | ||
* | ||
* @return string | ||
*/ | ||
public function getContents(); | ||
|
||
/** | ||
* Returns md5 hash of the file. | ||
* | ||
* @return string | ||
*/ | ||
public function md5(); | ||
|
||
/** | ||
* Returns an relative path to the file. | ||
* | ||
* @return string | ||
*/ | ||
public function path(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters