Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit ee66ba6

Browse files
committed
Add helper trait to provide type-hinting for zend-view
1 parent 004fd91 commit ee66ba6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/View/HelperTrait.php

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Zend\Mvc\Plugin\FlashMessenger\View;
4+
5+
use Zend\Mvc\Plugin\FlashMessenger\FlashMessenger as PluginFlashMessenger;
6+
use Zend\Mvc\Plugin\FlashMessenger\View\Helper\FlashMessenger;
7+
8+
/**
9+
* Trait HelperTrait
10+
*
11+
* The trait provides convenience methods for view helpers,
12+
* defined by the zend-mvc-plugin-flashmessenger component.
13+
* It is designed to be used for type-hinting $this variable
14+
* inside zend-view templates via doc blocks.
15+
*
16+
* The base class is PhpRenderer, followed by the helper trait from
17+
* the zend-mvc-plugin-flashmessenger component. However, multiple helper traits
18+
* from different Zend components can be chained afterwards.
19+
*
20+
* @example @var \Zend\View\Renderer\PhpRenderer|\Zend\Mvc\Plugin\FlashMessenger\View\HelperTrait $this
21+
*
22+
* @method FlashMessenger|PluginFlashMessenger flashMessenger($namespace = null)
23+
*/
24+
trait HelperTrait
25+
{
26+
}

0 commit comments

Comments
 (0)