1 | <?php |
||
21 | class ReadmeController extends \hidev\controllers\TemplateController |
||
22 | { |
||
23 | /** |
||
24 | * @var \Twig_Environment |
||
25 | */ |
||
26 | protected $_twig; |
||
27 | |||
28 | /** |
||
29 | * Get charset. |
||
30 | * @return string |
||
31 | */ |
||
32 | 4 | public function getCharset() |
|
33 | { |
||
34 | 4 | return (isset(Yii::$app->charset) ? Yii::$app->charset : null) ?: mb_internal_encoding(); |
|
35 | } |
||
36 | |||
37 | 4 | public function renderH($title, $char) |
|
44 | |||
45 | 3 | public function renderH1($title) |
|
49 | |||
50 | 1 | public function renderH2($title) |
|
54 | |||
55 | 1 | public function renderText($text) |
|
61 | |||
62 | 1 | public function renderBold($text) |
|
68 | |||
69 | 2 | public function renderSection($section, $default = null) |
|
78 | |||
79 | 2 | public function getSection($file, $default = null) |
|
91 | |||
92 | 2 | public function getSections() |
|
96 | |||
97 | /** |
||
98 | * Render all configured sections. |
||
99 | * @return string |
||
100 | */ |
||
101 | 2 | public function renderSections($sections = null) |
|
113 | |||
114 | /** |
||
115 | * Render all configured badges. |
||
116 | * @return string |
||
117 | */ |
||
118 | 2 | public function renderBadges() |
|
141 | |||
142 | /** |
||
143 | * Render badge by given template. |
||
144 | * @param string $template string to render. |
||
145 | * @return string |
||
146 | */ |
||
147 | 1 | public function renderBadge($template) |
|
151 | |||
152 | /** |
||
153 | * Twig getter. |
||
154 | * @return \Twig_Environment |
||
155 | */ |
||
156 | 1 | public function getTwig() |
|
164 | } |
||
165 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.