diff options
| author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-07-05 09:56:25 -0500 |
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-07-05 09:56:25 -0500 |
| commit | 576d8d70721f3f6c718339b069e93c33f3a38673 (patch) | |
| tree | 10ea1ae8335a5335a268859d0bfa2a4cf486d580 /phpBB/includes | |
| parent | 192c9d8f867a0c7d1a81d23bc4fb11c63fe1ec40 (diff) | |
| download | forums-576d8d70721f3f6c718339b069e93c33f3a38673.tar forums-576d8d70721f3f6c718339b069e93c33f3a38673.tar.gz forums-576d8d70721f3f6c718339b069e93c33f3a38673.tar.bz2 forums-576d8d70721f3f6c718339b069e93c33f3a38673.tar.xz forums-576d8d70721f3f6c718339b069e93c33f3a38673.zip | |
[feature/twig] Docs/typehinting for Twig extension
PHPBB3-11598
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/template/twig/extension.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/includes/template/twig/extension.php b/phpBB/includes/template/twig/extension.php index f73b99a4c1..5704468013 100644 --- a/phpBB/includes/template/twig/extension.php +++ b/phpBB/includes/template/twig/extension.php @@ -23,12 +23,24 @@ class phpbb_template_twig_extension extends Twig_Extension /** @var phpbb_user */ protected $user; - public function __construct(phpbb_template_context $context, $user) + /** + * Constructor + * + * @param phpbb_template_context $context + * @param phpbb_user $user + * @return phpbb_template_twig_extension + */ + public function __construct(phpbb_template_context $context, phpbb_user $user) { $this->context = $context; $this->user = $user; } + /** + * Get the name of this extension + * + * @return string + */ public function getName() { return 'phpbb'; |
