This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
46
*/
47
25
public function getId()
48
{
49
25
return $this->id;
50
}
51
52
/**
53
* Set type
54
*
55
* @param string $type type of contact (ie. phone, email, web, xmpp)
56
*
57
* @return self
58
*/
59
24
public function setType($type)
60
{
61
24
$this->type = $type;
62
63
24
return $this;
64
}
65
66
/**
67
* Get type
68
*
69
* @return string $type
70
*/
71
25
public function getType()
72
{
73
25
return $this->type;
74
}
75
76
/**
77
* Set value
78
*
79
* @param string $value value to contact resource (starting with tel:, http:, ...)
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.