StepInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.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 Symfony\Bundle\WebConfiguratorBundle\Step;
  11. use Symfony\Component\Form\Type\FormTypeInterface;
  12. /**
  13. * StepInterface.
  14. *
  15. * @author Marc Weistroff <marc.weistroff@sensio.com>
  16. */
  17. interface StepInterface
  18. {
  19. /**
  20. * __construct
  21. *
  22. * @param array $parameters
  23. */
  24. function __construct(array $parameters);
  25. /**
  26. * Returns the form used for configuration.
  27. *
  28. * @return FormTypeInterface
  29. */
  30. function getFormType();
  31. /**
  32. * Checks for requirements.
  33. *
  34. * @return array
  35. */
  36. function checkRequirements();
  37. /**
  38. * Checks for optional setting it could be nice to have.
  39. *
  40. * @return array
  41. */
  42. function checkOptionalSettings();
  43. /**
  44. * Returns the template to be renderer for this step.
  45. *
  46. * @return string
  47. */
  48. function getTemplate();
  49. /**
  50. * Updates form data parameters.
  51. *
  52. * @param array $parameters
  53. * @return array
  54. */
  55. function update(StepInterface $data);
  56. }