fbdd2f6edaeb6595b7502f6ede4b6b325355a76d
[pharext/pharext] / src / pharext / SourceDir.php
1 <?php
2
3 namespace pharext;
4
5 /**
6 * Source directory interface
7 */
8 interface SourceDir extends \Traversable
9 {
10 /**
11 * Read the source directory
12 *
13 * Note: Best practices are for others, but if you want to follow them, do
14 * not put constructors in interfaces. Keep your complaints, I warned you.
15 *
16 * @param Command $cmd
17 * @param string $path
18 */
19 public function __construct(Command $cmd, $path);
20
21 /**
22 * Retrieve the base directory
23 * @return string
24 */
25 public function getBaseDir();
26 }