1 | <?php |
||
3 | class ApiKey extends Model |
||
4 | { |
||
5 | protected $name; |
||
6 | |||
7 | protected $owner; |
||
8 | |||
9 | protected $key; |
||
10 | |||
11 | protected $status; |
||
12 | |||
13 | /** |
||
14 | * The name of the database table used for queries |
||
15 | */ |
||
16 | const TABLE = "api_keys"; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | 1 | protected function assignResult($key) |
|
28 | |||
29 | 1 | public static function createKey($name, $owner) |
|
40 | |||
41 | public static function getKeyByOwner($owner) |
||
51 | |||
52 | public function getKey() |
||
56 | |||
57 | public function getName() |
||
61 | |||
62 | 1 | public function getOwner() |
|
66 | |||
67 | public function getStatus() |
||
71 | |||
72 | public static function getKeys($owner = -1) |
||
82 | |||
83 | 1 | protected static function generateKey() |
|
93 | } |
||
94 |
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.