ProjectFactory.php 600 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * phpDocumentor
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. *
  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 File[] $files
  22. */
  23. public function create(string $name, array $files) : Project;
  24. }