Conditions | 1 |
Paths | 1 |
Total Lines | 47 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Tests | 35 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
61 | 9 | if ($helpers) { |
|
62 | $this->helper()->addHelpers($helpers); |
||
63 | } |
||
64 | 9 | } |
|
65 | 9 | ||
66 | 9 | /** |
|
67 | 9 | * View |
|
68 | * |
||
69 | 9 | * @return mixed |
|
70 | 9 | * |
|
71 | 9 | * @access public |
|
72 | 9 | */ |
|
73 | public function view() |
||
74 | 9 | { |
|
75 | 9 | return $this->configs[ViewConfig::class]; |
|
76 | } |
||
77 | 9 | ||
78 | 9 | /** |
|
79 | 9 | * Helper |
|
80 | 9 | * |
|
81 | * @return mixed |
||
82 | 9 | * @throws exceptionclass [description] |
|
83 | 9 | * |
|
84 | 9 | * @access public |
|
85 | 9 | */ |
|
86 | public function helper() |
||
87 | 9 | { |
|
88 | 9 | return $this->configs[ViewHelperConfig::class]; |
|
89 | 9 | } |
|
90 | } |
||
91 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.