No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

51 líneas
1.0KB

  1. <?php
  2. /*
  3. * This file is part of the Fxp Composer Asset Plugin package.
  4. *
  5. * (c) François Pluchino <francois.pluchino@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Fxp\Composer\AssetPlugin\Event;
  11. use Composer\EventDispatcher\Event;
  12. /**
  13. * The VCS repository event.
  14. *
  15. * @author François Pluchino <francois.pluchino@gmail.com>
  16. */
  17. class VcsRepositoryEvent extends Event
  18. {
  19. /**
  20. * @var array
  21. */
  22. protected $repositories;
  23. /**
  24. * Constructor.
  25. *
  26. * @param string $name The event name
  27. * @param array $repos The list of vcs repositories config
  28. */
  29. public function __construct($name, array $repos)
  30. {
  31. parent::__construct($name);
  32. $this->repositories = $repos;
  33. }
  34. /**
  35. * Gets the list of vcs repositories config.
  36. *
  37. * @return array The list of vcs repositories config
  38. */
  39. public function getRepositories()
  40. {
  41. return $this->repositories;
  42. }
  43. }