GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 53177f...cf3086 )
by Sebastian
02:24
created

Html::getHtml()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Spatie\Menu;
4
5
use Spatie\Menu\Traits\Activatable;
6
use Spatie\Menu\Traits\ParentAttributes;
7
8
class Html implements Item
9
{
10
    use Activatable, ParentAttributes;
11
12
    /** @var string */
13
    protected $html;
14
15
    /**
16
     * @param string $html
17
     */
18
    protected function __construct(string $html)
19
    {
20
        $this->html = $html;
21
        $this->active = false;
22
23
        $this->bootParentAttributes();
24
    }
25
26
    /**
27
     * Create an item containing a chunk of raw html.
28
     *
29
     * @param string $html
30
     *
31
     * @return static
32
     */
33
    public static function raw(string $html)
34
    {
35
        return new static($html);
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getHtml() : string
42
    {
43
        return $this->html;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function render() : string
50
    {
51
        return $this->html;
52
    }
53
}
54