InstalledArrayRepository.php 677 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer\Repository;
  12. /**
  13. * Installed array repository.
  14. *
  15. * This is used as an in-memory InstalledRepository mostly for testing purposes
  16. *
  17. * @author Jordi Boggiano <j.boggiano@seld.be>
  18. */
  19. class InstalledArrayRepository extends WritableArrayRepository implements InstalledRepositoryInterface
  20. {
  21. public function getRepoName()
  22. {
  23. return 'installed '.parent::getRepoName();
  24. }
  25. }