fix travis build
[GitHub/Stricted/Domain-Control-Panel.git] / vendor / Zend / Mvc / Controller / Plugin / AbstractPlugin.php
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
4 *
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
8 */
9
10 namespace Zend\Mvc\Controller\Plugin;
11
12 use Zend\Stdlib\DispatchableInterface as Dispatchable;
13
14 abstract class AbstractPlugin implements PluginInterface
15 {
16 /**
17 * @var null|Dispatchable
18 */
19 protected $controller;
20
21 /**
22 * Set the current controller instance
23 *
24 * @param Dispatchable $controller
25 * @return void
26 */
27 public function setController(Dispatchable $controller)
28 {
29 $this->controller = $controller;
30 }
31
32 /**
33 * Get the current controller instance
34 *
35 * @return null|Dispatchable
36 */
37 public function getController()
38 {
39 return $this->controller;
40 }
41 }