1 | <?php |
||
49 | abstract class Controller implements ContextAware, ServicesAware |
||
|
|||
50 | { |
||
51 | /** |
||
52 | * @var Container |
||
53 | */ |
||
54 | protected $services; |
||
55 | |||
56 | /** |
||
57 | * @var Context |
||
58 | */ |
||
59 | protected $context; |
||
60 | |||
61 | /** |
||
62 | * Get the Services Container |
||
63 | * |
||
64 | * @return Container |
||
65 | */ |
||
66 | 4 | public function getServices() |
|
70 | |||
71 | /** |
||
72 | * Sets the Services Container |
||
73 | * |
||
74 | * @param Container $container Services Container |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | 4 | public function setServices(Container $container) |
|
82 | |||
83 | /** |
||
84 | * Sets current context |
||
85 | * |
||
86 | * @param Context $context Current context |
||
87 | * |
||
88 | * @return void |
||
89 | */ |
||
90 | 4 | public function setContext(Context $context) |
|
94 | |||
95 | /** |
||
96 | * Returns current context |
||
97 | * |
||
98 | * @return Context |
||
99 | */ |
||
100 | 4 | public function getContext() |
|
104 | } |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.