| Total Complexity | 4 | 
| Total Lines | 44 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 10 | class ApplicationViewInjection implements  | 
            ||
| 11 | LayoutParamsInjectionInterface,  | 
            ||
| 12 | MetaTagsInjectionInterface,  | 
            ||
| 13 | LinkTagsInjectionInterface  | 
            ||
| 14 | { | 
            ||
| 15 | |||
| 16 | private User $user;  | 
            ||
| 17 | private UrlMatcherInterface $urlMatcher;  | 
            ||
| 18 | |||
| 19 | public function __construct(  | 
            ||
| 20 | User $user,  | 
            ||
| 21 | UrlMatcherInterface $urlMatcher  | 
            ||
| 22 |     ) { | 
            ||
| 23 | $this->user = $user;  | 
            ||
| 24 | $this->urlMatcher = $urlMatcher;  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 | public function getLayoutParams(): array  | 
            ||
| 28 |     { | 
            ||
| 29 | return [  | 
            ||
| 30 | 'user' => $this->user->getIdentity(),  | 
            ||
| 31 | 'currentUrl' => (string)$this->urlMatcher->getLastMatchedRequest()->getUri(),  | 
            ||
| 32 | 'brandLabel' => 'Yii Demo',  | 
            ||
| 33 | ];  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | public function getMetaTags(): array  | 
            ||
| 43 | ],  | 
            ||
| 44 | ];  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | public function getLinkTags(): array  | 
            ||
| 54 | ],  | 
            ||
| 55 | ];  | 
            ||
| 56 | }  | 
            ||
| 58 |