Answer the question
In order to leave comments, you need to log in
Variable name hints passed to method parameters like in Java?
I noticed that in Java their IDE the name of the variable passed to the method must match the name of the variable in the method, or the IDE will issue a yellow underlined warning.
function test (Class $user){....}
user ($currentUser) // выдаст варнинг что переменаня должна называться $user
Answer the question
In order to leave comments, you need to log in
/**
* @param int $id
* @param string $key
* @param string $type
* @param bool $cache
* @return Entity_car|object
*/
public function get_by($id = -1, $key = 'id', $type = 'and', $cache = TRUE)
{
return parent::get_by($id, $key, $type, $cache);
}
$this->orders_model->get_part(offset:0,count:1000,$where_order);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question