HTMLAuthorizeRenderer::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace TH\OAuth2;
4
5
class HTMLAuthorizeRenderer implements AuthorizeRenderer
6
{
7
    private $view;
8
9
    public function __construct($view)
10
    {
11
        $this->view = $view;
12
    }
13
14
    public function render($formUrl, $clientId, $responseType, $user)
15
    {
16
        ob_start();
17
        include $this->view;
18
        $response = ob_get_contents();
19
        ob_end_clean();
20
        return $response;
21
    }
22
}
23