| 1 | <?php |
||
| 5 | class NexmoMessage |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The message content. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $content; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The phone number the message should be sent from. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $from; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new message instance. |
||
| 23 | * |
||
| 24 | * @param string $message |
||
|
|
|||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | 2 | public function __construct($content = '') |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Set the message content. |
||
| 34 | * |
||
| 35 | * @param string $content |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | public function content($content) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Set the phone number the message should be sent from. |
||
| 47 | * |
||
| 48 | * @param string $number |
||
| 49 | * @return $this |
||
| 50 | */ |
||
| 51 | 1 | public function from($from) |
|
| 57 | } |
||
| 58 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.