rapyd-laravel
rapyd-laravel copied to clipboard
PHPDOC
Please, can you fix your php doc, return statement, and so on for autocomplition in PhpStorm. Examples ..
$grid->row(function ($row) {
/* @var Row $row */
$row->cell('actions')->attributes(['class' => 'pull-right']);
});
=============
in class Row
public function cell($name) // TODO doc absent
{
$index = array_search($name, $this->cell_names);
if ($index === false) return false;
return $this->cells[$index];
}
in class DataForm
/**
* @param string $name
* @param string $label
* @param string $type
* @param string $validation
*
* @return mixed // TODO specify the exect class name. May be it's class Field or another contract
*/
public function add($name, $label, $type, $validation = '')
{
// method ...
return $field_obj;
}
in class DataGrid
/**
* @param string $name
* @param string $label
* @param bool $orderby
*
* @return Column // THIS right. Leave this as example of right return
*/
public function add($name, $label = null, $orderby = false)
{
// method ...
return $column;
}
Many thanks!
@IlyaSavich please be more specific, if it's a generic issue? or facade side? class side etc..
and provide a sample.
note, usually for some situation / ide the ide-helper is still needed imho
Sorry, for inaccurate issue. Updated it yet and I'm already used ide-helper