| 1 | <?php |
||
| 8 | class ContactsAPI extends API |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Type\FolderIdType |
||
| 12 | */ |
||
| 13 | protected $folderId; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return Type\FolderIdType |
||
| 17 | */ |
||
| 18 | public function getFolderId() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param Type\FolderIdType $folderId |
||
| 29 | */ |
||
| 30 | public function setFolderId($folderId) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param Type\FolderIdType $folderId |
||
| 37 | * @param array $options |
||
| 38 | * @return Type |
||
| 39 | */ |
||
| 40 | public function getContacts($folderId = null, $options = array()) |
||
| 61 | } |
||
| 62 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: