3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Mvc\Controller\Plugin
;
12 use Zend\Stdlib\DispatchableInterface
as Dispatchable
;
14 abstract class AbstractPlugin
implements PluginInterface
17 * @var null|Dispatchable
19 protected $controller;
22 * Set the current controller instance
24 * @param Dispatchable $controller
27 public function setController(Dispatchable
$controller)
29 $this->controller
= $controller;
33 * Get the current controller instance
35 * @return null|Dispatchable
37 public function getController()
39 return $this->controller
;