ContextAware.php 567 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of Psy Shell.
  4. *
  5. * (c) 2012-2018 Justin Hileman
  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 Psy;
  11. /**
  12. * ContextAware interface.
  13. *
  14. * This interface is used to pass the Shell's context into commands and such
  15. * which require access to the current scope variables.
  16. */
  17. interface ContextAware
  18. {
  19. /**
  20. * Set the Context reference.
  21. *
  22. * @param Context $context
  23. */
  24. public function setContext(Context $context);
  25. }