X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FSourceDir.php;h=8620668d5215220ba199a069632966c112240b14;hb=e990b6dabecbdaf98b8d8b2173b0d697f9b2b754;hp=fbdd2f6edaeb6595b7502f6ede4b6b325355a76d;hpb=4acccbbedeb300e70cc06d9253e95bafeb7a2859;p=pharext%2Fpharext diff --git a/src/pharext/SourceDir.php b/src/pharext/SourceDir.php index fbdd2f6..8620668 100644 --- a/src/pharext/SourceDir.php +++ b/src/pharext/SourceDir.php @@ -3,24 +3,31 @@ 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(); + + /** + * 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); }