1 | <?php |
||
8 | class Post extends ActiveRecordModelExtender |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var string $tableName name of the database table. |
||
13 | */ |
||
14 | protected $tableName = "ramverk1_posts"; |
||
15 | |||
16 | /** |
||
17 | * Columns in the table. |
||
18 | * |
||
19 | * @var integer $id primary key auto incremented. |
||
20 | */ |
||
21 | public $id; |
||
22 | public $user; |
||
23 | public $questionId; # Connection to new Question() |
||
24 | public $accepted; # default "no" |
||
25 | |||
26 | public $type; # question/answer |
||
27 | public $text; |
||
28 | |||
29 | public $created; |
||
30 | |||
31 | public $di; |
||
32 | |||
33 | |||
34 | /** |
||
35 | * Set ups the question |
||
36 | * @param object $question |
||
|
|||
37 | * @param array $param |
||
38 | * |
||
39 | * @return object |
||
40 | */ |
||
41 | 8 | public function setupPost($post) |
|
55 | |||
56 | /** |
||
57 | * Returns post with markdown and gravatar |
||
58 | * @param string $sql |
||
59 | * @param array $param |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | 9 | public function getAllPosts($sql, $params) |
|
70 | |||
71 | /** |
||
72 | * return question/answer, three attributes are set, comments connected to them is an array. |
||
73 | * |
||
74 | * @return object |
||
75 | */ |
||
76 | 8 | public function getPost($sql, $params) |
|
81 | } |
||
82 |
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 methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.