1 | <?php |
||
11 | class PublishdateYear extends Base { |
||
12 | |||
13 | const PUBLISHDATE_YEAR_ID = "cops:publishdatesyear"; |
||
14 | const PUBLISHDATE_YEAR_COLUMNS = "strftime('%Y-%m', pubdate) as name, count(*) as count"; |
||
15 | const SQL_PUBLISHDATE_YEAR = "select {0} from books where name LIKE :year group by name order by name ASC"; |
||
16 | const SQL_PUBLISHDATE_YEAR_COUNT = "select count(DISTINCT strftime('%Y-%m', pubdate)) from books"; |
||
17 | |||
18 | public $id; |
||
19 | public $name; |
||
20 | |||
21 | public function __construct($post) { |
||
25 | |||
26 | public function getUri() { |
||
29 | |||
30 | public function getEntryId() { |
||
33 | |||
34 | public static function getCount() { |
||
37 | |||
38 | public static function getAllPublishdateMonth($id) { |
||
41 | |||
42 | public static function getPublishdateMonth ($id) { |
||
49 | } |
||
50 |
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.