StepContainerInterface.php 660 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 step container interface.
  12. *
  13. * @author Konstantin Kudryashov <ever.zet@gmail.com>
  14. */
  15. interface StepContainerInterface extends NodeInterface
  16. {
  17. /**
  18. * Checks if container has steps.
  19. *
  20. * @return Boolean
  21. */
  22. public function hasSteps();
  23. /**
  24. * Returns container steps.
  25. *
  26. * @return StepNode[]
  27. */
  28. public function getSteps();
  29. }