X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FSourceDir.php;h=c7068ba235763917d153851bd1a917f05212fc31;hb=2f28b0c7fa1729499d03a254eb9c5e0dd85ef9fd;hp=fbdd2f6edaeb6595b7502f6ede4b6b325355a76d;hpb=0ff7b26bce8f0dfbd1d4d45313705a94f2ac5e28;p=pharext%2Fpharext diff --git a/src/pharext/SourceDir.php b/src/pharext/SourceDir.php index fbdd2f6..c7068ba 100644 --- a/src/pharext/SourceDir.php +++ b/src/pharext/SourceDir.php @@ -3,24 +3,37 @@ namespace pharext; /** - * Source directory interface + * Source directory interface, which should yield file names to package on traversal */ interface SourceDir extends \Traversable { - /** - * Read the source directory - * - * Note: Best practices are for others, but if you want to follow them, do - * not put constructors in interfaces. Keep your complaints, I warned you. - * - * @param Command $cmd - * @param string $path - */ - public function __construct(Command $cmd, $path); - /** * Retrieve the base directory * @return string */ public function getBaseDir(); + + /** + * Retrieve gathered package info + * @return array|Traversable + */ + public function getPackageInfo(); + + /** + * Retrieve the full text license + * @return string + */ + public function getLicense(); + + /** + * Provide installer command line args + * @return array|Traversable + */ + public function getArgs(); + + /** + * Process installer command line args + * @param \pharext\Cli\Args $args + */ + public function setArgs(Cli\Args $args); }