PayloadContract::setStatus()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace BrightComponents\Common\Payloads\Contracts;
4
5
interface PayloadContract extends Status
6
{
7
    /**
8
     * Set the Payload status.
9
     *
10
     * @param  string  $status
11
     *
12
     * @return $this
13
     */
14
    public function setStatus($status);
15
16
    /**
17
     * Get the status of the payload.
18
     *
19
     * @return string
20
     */
21
    public function getStatus();
22
23
    /**
24
     * Set the Payload output.
25
     *
26
     * @param  mixed  $output
27
     * @param  string|null  $wrapper
28
     *
29
     * @return $this
30
     */
31
    public function setOutput($output, ? string $wrapper = null);
32
33
    /**
34
     * Get the Payload output.
35
     *
36
     * @return array
37
     */
38
    public function getOutput();
39
40
    /**
41
     * Get the unwrapped Payload output.
42
     *
43
     * @return array
44
     */
45
    public function getUnwrappedOutput();
46
47
    /**
48
     * Set the Payload messages.
49
     *
50
     * @param  array  $output
0 ignored issues
show
Bug introduced by
There is no parameter named $output. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
51
     *
52
     * @return $this
53
     */
54
    public function setMessages(array $messages);
55
56
    /**
57
     * Get messages array from the payload.
58
     *
59
     * @return array
60
     */
61
    public function getMessages();
62
63
    /**
64
     * Get the wrapper for the output.
65
     *
66
     * @return string
67
     */
68
    public function getOutputWrapper();
69
70
    /**
71
     * Get the wrapper for messages.
72
     *
73
     * @return string
74
     */
75
    public function getMessagesWrapper();
76
}
77