NodeInterface.php 627 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Behat Gherkin.
  4. * (c) Konstantin Kudryashov <ever.zet@gmail.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. namespace Behat\Gherkin\Node;
  10. /**
  11. * Gherkin node interface.
  12. *
  13. * @author Konstantin Kudryashov <ever.zet@gmail.com>
  14. */
  15. interface NodeInterface
  16. {
  17. /**
  18. * Returns node type string
  19. *
  20. * @return string
  21. */
  22. public function getNodeType();
  23. /**
  24. * Returns feature declaration line number.
  25. *
  26. * @return integer
  27. */
  28. public function getLine();
  29. }