1 | <?php |
||
49 | class Lock extends Entity implements ILock { |
||
50 | |||
51 | /** @var int BIGINT - foreign key to oc_filecache.fileid */ |
||
52 | protected $fileId; |
||
53 | /** @var string - plain text field as transmitted by clients*/ |
||
54 | protected $owner; |
||
55 | /** @var int - seconds of lock life time */ |
||
56 | protected $timeout; |
||
57 | /** @var int - unix timestamp when lock was created*/ |
||
58 | protected $createdAt; |
||
59 | /** @var string - uuid in WebDAV */ |
||
60 | protected $token; |
||
61 | /** @var string - md5 of token */ |
||
62 | protected $tokenHash; |
||
63 | /** @var int - LOCK_SCOPE_EXCLUSIVE or LOCK_SCOPE_SHARED */ |
||
64 | protected $scope; |
||
65 | /** @var int: 0, 1 or infinite */ |
||
66 | protected $depth; |
||
67 | /** @var int - foreign key zu oc_account.id */ |
||
68 | protected $ownerAccountId; |
||
69 | |||
70 | /** @var string - joined with oc_filecache */ |
||
71 | protected $path; |
||
72 | /** @var string - computed value */ |
||
73 | protected $globalUserId; |
||
74 | /** @var string - computed value */ |
||
75 | protected $globalFileName; |
||
76 | |||
77 | public function __construct() { |
||
85 | |||
86 | /** |
||
87 | * @param $token |
||
88 | */ |
||
89 | public function setToken($token) { |
||
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.