1 | <?php |
||
11 | class Rating extends Base { |
||
12 | const ALL_RATING_ID = "cops:rating"; |
||
13 | |||
14 | const SQL_ALL_RATINGS = |
||
15 | "select ratings.id as id, ratings.rating as rating, count(*) as count |
||
16 | from ratings |
||
17 | inner join books_ratings_link as link on link.rating = ratings.id |
||
18 | inner join ({0}) as filter on filter.id = link.book |
||
19 | 2 | group by ratings.id |
|
20 | 2 | order by ratings.rating"; |
|
21 | 2 | public $id; |
|
22 | 2 | public $name; |
|
23 | |||
24 | 1 | public function __construct($pid, $pname) { |
|
28 | 2 | ||
29 | 2 | public function getUri () { |
|
32 | 8 | ||
33 | public function getEntryId () { |
||
36 | |||
37 | 1 | public static function getCount() { |
|
41 | 1 | ||
42 | 1 | public static function getAllRatings() { |
|
45 | |||
46 | 1 | public static function getEntryArray ($query, $params) { |
|
60 | |||
61 | public static function getRatingById ($ratingId) { |
||
66 | } |
||
67 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.