HomeDomain::getWelcomeText()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 18
rs 10
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace App\Domain;
6
7
/**
8
 * Class HomeDomain
9
 *
10
 * This is a very simple domain which is normally used to provide some kind of data for you views.
11
 *
12
 * @package App\Domains
13
 */
14
class HomeDomain
15
{
16
    /**
17
     * Retrieves welcome text.
18
     *
19
     * @return string
20
     */
21
    public function getWelcomeText(): string
22
    {
23
        $welcomeText = '
24
            <p>Hello World!<br>This is Stardust...</p>
25
            <hr>
26
            <br/>
27
            <a href="/">index</a>
28
            <br/>
29
            <a href="payload/">payload</a>
30
            <br/>
31
            <a href="payload/42">payload/42</a>
32
            <br/>
33
            <a href="payloadtwo/">payloadtwo/</a>
34
            <br/>
35
            <a href="payloadtwo/42">payloadtwo/42</a>
36
            <br/>
37
        ';
38
        return $welcomeText;
39
    }
40
}
41