Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
3 / 3 |
| HasViewTrait | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
3 / 3 |
| setView | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getView | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace Bone\View\Traits; | |
| use Bone\View\ViewEngineInterface; | |
| trait HasViewTrait | |
| { | |
| /** @var ViewEngineInterface $view */ | |
| protected $view; | |
| /** | |
| * @param ViewEngineInterface $view | |
| */ | |
| public function setView(ViewEngineInterface $view): void | |
| { | |
| $this->view = $view; | |
| } | |
| /** | |
| * @return ViewEngineInterface | |
| */ | |
| public function getView(): ViewEngineInterface | |
| { | |
| return $this->view; | |
| } | |
| } |