| 1 | <?php |
||
| 8 | class VKDocuments extends VKAPI { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * API Method for this class |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $apiMethod = 'docs.'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * VKDocuments constructor. |
||
| 18 | * @param VKBase $vkObject |
||
| 19 | */ |
||
| 20 | public function __construct(VKBase $vkObject) { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Returns detailed information about user or community documents |
||
| 26 | * @param int $ownerID |
||
| 27 | * @param int $setCount |
||
| 28 | * @param int $setOffset |
||
| 29 | * @return mixed |
||
| 30 | * @throws VKException |
||
| 31 | */ |
||
| 32 | public function get($ownerID, $setCount = 10, $setOffset = 0) { |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string | array $documentIDorArray |
||
| 45 | * @return mixed |
||
| 46 | * @throws VKException |
||
| 47 | */ |
||
| 48 | public function getById($documentIDorArray) { |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Returns the server address for document upload. |
||
| 59 | * @param $communityID |
||
| 60 | * @return mixed |
||
| 61 | */ |
||
| 62 | public function getUploadServer($communityID) { |
||
| 69 | |||
| 70 | |||
| 71 | } |
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.