Completed
Push — master ( b3d468...1a1ba8 )
by John
02:05
created

HelloWorld::getAsAssociativeArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
namespace HelloWorld\Models;
3
4
use LunixREST\Response\ResponseData;
5
6
class HelloWorld implements ResponseData {
7
8
    protected $helloWorld = "HelloWorld";
9
10
    /**
11
     * @return array
12
     */
13
    public function getAsAssociativeArray(): array {
14
        return [
15
            "helloworld" => $this->helloWorld
16
        ];
17
    }
18
}
19