rapyd-laravel icon indicating copy to clipboard operation
rapyd-laravel copied to clipboard

PHPDOC

Open IlyaSavich opened this issue 8 years ago • 2 comments

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 avatar Sep 30 '16 10:09 IlyaSavich

@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

zofe avatar Sep 30 '16 15:09 zofe

Sorry, for inaccurate issue. Updated it yet and I'm already used ide-helper

IlyaSavich avatar Oct 01 '16 10:10 IlyaSavich