ParserInterface.php

  1. 8.0.x lib/Drush/Make/Parser/ParserInterface.php
  2. 7.x lib/Drush/Make/Parser/ParserInterface.php
  3. master lib/Drush/Make/Parser/ParserInterface.php

Interface for make file parsing.

Namespace

Drush\Make\Parser

Interfaces

Namesort descending Description
ParserInterface

File

lib/Drush/Make/Parser/ParserInterface.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Interface for make file parsing.
  5. */
  6. namespace Drush\Make\Parser;
  7. interface ParserInterface {
  8. /**
  9. * Determine if a given file is supported.
  10. *
  11. * @param string $filename
  12. *
  13. * @return bool
  14. */
  15. public static function supportedFile($filename);
  16. /**
  17. * Parse an input string into an array.
  18. *
  19. * @param string $data
  20. *
  21. * @return array
  22. * Makefile data as an array.
  23. */
  24. public static function parse($data);
  25. }