ProjectFactory.php 783 B

12345678910111213141516171819202122232425262728293031
  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. * @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
  10. * @license http://www.opensource.org/licenses/mit-license.php MIT
  11. * @link http://phpdoc.org
  12. */
  13. namespace phpDocumentor\Reflection;
  14. /**
  15. * Interface for project factories. A project factory shall convert a set of files
  16. * into an object implementing the Project interface.
  17. */
  18. interface ProjectFactory
  19. {
  20. /**
  21. * Creates a project from the set of files.
  22. *
  23. * @param string $name
  24. * @param File[] $files
  25. * @return Project
  26. */
  27. public function create($name, array $files): Project;
  28. }