Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 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 stardust / darkmatter / respondertest / ID: ' . $this->id, |
||
38 | 'extras' => [ |
||
39 | 'message' => 'welcome to stardust / darkmatter / ID: ' . $this->id, |
||
40 | 'note' => 'message from: ' . __CLASS__, |
||
41 | 'button' => '<a href="http://localhost:8000">index</a>', |
||
42 | 'button2' => '<a href="/payloadtest/">payloadtest</a>', |
||
43 | 'button3' => '<a href="/payloadtest/43545">payloadtest/43545</a>', |
||
44 | 'id' => $this->id |
||
45 | ] |
||
46 | ]; |
||
47 | |||
48 | // if we get the data or file or whatever, then set the payload STATUS to FOUND |
||
49 | $payload = new Payload(Status::FOUND, $payload_dymmy_data); |
||
50 | |||
51 | return $payload; |
||
52 | } |
||
54 |