ProjectFactory.php 639 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * phpDocumentor
  4. *
  5. * PHP Version 5.5
  6. *
  7. * @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
  8. * @license http://www.opensource.org/licenses/mit-license.php MIT
  9. * @link http://phpdoc.org
  10. */
  11. namespace phpDocumentor\Reflection;
  12. /**
  13. * Interface for project factories. A project factory shall convert a set of files
  14. * into an object implementing the Project interface.
  15. */
  16. interface ProjectFactory
  17. {
  18. /**
  19. * Creates a project from the set of files.
  20. *
  21. * @param string $name
  22. * @param File[] $files
  23. * @return Project
  24. */
  25. public function create($name, array $files);
  26. }