Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function getWelcomePayload() : Payload |
||
34 | { |
||
35 | // get the data from the db or filesystem |
||
36 | $payload_dymmy_data = [ |
||
37 | 'body' => 'welcome to darkmatter', |
||
38 | 'note' => 'message from: ' . __CLASS__, |
||
39 | 'button' => '<a href="http://localhost:8000">index</a>', |
||
40 | 'button2' => '<a href="/payloadtest/">payloadtest</a>', |
||
41 | 'button3' => '<a href="/payloadtest/43545">payloadtest/43545</a>', |
||
42 | 'id' => $this->id |
||
43 | ]; |
||
44 | |||
45 | // if we get the data or file or whatever, then set the payload STATUS to FOUND |
||
46 | $payload = new Payload(Status::FOUND, $payload_dymmy_data); |
||
47 | |||
48 | return $payload; |
||
49 | } |
||
51 |