YamlReporter.php 341 B

1234567891011121314151617181920
  1. <?php
  2. namespace Fgm\ComposerCheck;
  3. use Symfony\Component\Yaml\Yaml;
  4. /**
  5. * Class YamlReporter formats a requirements set as YAML.
  6. */
  7. class YamlReporter extends ReporterBase {
  8. /**
  9. * {@inheritdoc}
  10. */
  11. public function report(MergeBox $mergeBox) : string {
  12. $yaml = Yaml::dump($mergeBox->getRows(), 3);
  13. return $yaml;
  14. }
  15. }