/**
Annotation ?????
*/
public function getProduct($id=null,$params=null) {
if (!empty($params['sku']) {
$sql.= " AND sku=:sku " ;
$sql_tab['sku']=$params['sku']; }
if (!empty($params['ean']) {
$sql.= " AND ean=:ean " ;
$sql_tab['ean']=$params['ean']; }
// .....
}
Is there a way for my IDE (VS Code / IntelliJ) to help it about autocompletion, based on this quick example ?
I mean, what annotations should I have to for an array ($params here)?