Completed
Push — master ( 1d3c0c...8bf0fe )
by Song
03:06
created

Edit   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 4 1
A href() 0 4 1
1
<?php
2
3
namespace Encore\Admin\Grid\Actions;
4
5
use Encore\Admin\Actions\RowAction;
6
7
class Edit extends RowAction
8
{
9
    /**
10
     * @return array|null|string
11
     */
12
    public function name()
13
    {
14
        return __('admin.edit');
0 ignored issues
show
Bug Compatibility introduced by
The expression __('admin.edit'); of type string|array|null adds the type array to the return on line 14 which is incompatible with the return type of the parent method Encore\Admin\Actions\Action::name of type string.
Loading history...
15
    }
16
17
    /**
18
     * @return string
19
     */
20
    public function href()
21
    {
22
        return "{$this->getResource()}/{$this->getKey()}/edit";
23
    }
24
}