| 1 | <?php |
||
| 7 | class PanaceaMobileMessage implements Arrayable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The phone number the message should be sent from. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | public $from; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The message content. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public $content; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create a new message instance. |
||
| 25 | * |
||
| 26 | * @param string $content |
||
| 27 | * @return static |
||
| 28 | */ |
||
| 29 | public static function create($content = '') |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $content |
||
| 36 | */ |
||
| 37 | public function __construct($content = '') |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Set the message content. |
||
| 44 | * |
||
| 45 | * @param string $content |
||
| 46 | * |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function content($content) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Set the phone number or from name the message should be sent from. |
||
| 58 | * |
||
| 59 | * @param string $from |
||
| 60 | * |
||
| 61 | * @return $this |
||
| 62 | */ |
||
| 63 | public function from($from) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Set the phone number or from name the message should be sent from. |
||
| 72 | * |
||
| 73 | * @param string $from |
||
|
|
|||
| 74 | * |
||
| 75 | * @return $this |
||
| 76 | */ |
||
| 77 | public function recipient($to) |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return array |
||
| 86 | */ |
||
| 87 | public function toArray() |
||
| 100 | } |
||
| 101 |
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.