| 1 | <?php |
||
| 11 | class Publishdate extends Base { |
||
| 12 | |||
| 13 | const ALL_PUBLISHDATES_ID = "cops:publishdates"; |
||
| 14 | const PUBLISHDATE_COLUMNS = "strftime('%Y', pubdate) as name, count(*) as count"; |
||
| 15 | const SQL_ALL_PUBLISHDATES = "select {0} from books group by name order by name DESC"; |
||
| 16 | const SQL_PUBLISHDATE_COUNT = "select count(DISTINCT strftime('%Y', 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 getAllPublishdates() { |
||
| 41 | |||
| 42 | } |
||
| 43 |
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 theSoncalls the wrong method in the parent class.