Abstract.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Tool
  17. * @subpackage Framework
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @see Zend_Tool_Framework_Provider_Interface
  24. */
  25. require_once 'Zend/Tool/Framework/Provider/Interface.php';
  26. /**
  27. * @see Zend_Tool_Framework_Registry_EnabledInterface
  28. */
  29. require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
  30. /**
  31. * This is a convenience class.
  32. *
  33. * At current it will return the request and response from the client registry
  34. * as they are the more common things that will be needed by providers
  35. *
  36. *
  37. * @category Zend
  38. * @package Zend_Tool
  39. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  40. * @license http://framework.zend.com/license/new-bsd New BSD License
  41. */
  42. abstract class Zend_Tool_Framework_Provider_Abstract
  43. implements Zend_Tool_Framework_Provider_Interface, Zend_Tool_Framework_Registry_EnabledInterface
  44. {
  45. /**
  46. * @var Zend_Tool_Framework_Registry_Interface
  47. */
  48. protected $_registry = null;
  49. /**
  50. * setRegistry() - required by Zend_Tool_Framework_Registry_EnabledInterface
  51. *
  52. * @param Zend_Tool_Framework_Registry_Interface $registry
  53. * @return Zend_Tool_Framework_Provider_Abstract
  54. */
  55. public function setRegistry(Zend_Tool_Framework_Registry_Interface $registry)
  56. {
  57. $this->_registry = $registry;
  58. return $this;
  59. }
  60. }