Skip to content

Commit 3dffbef

Browse files
committed
[refactor]Modify method name
1 parent 68b94ff commit 3dffbef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Grid/Column.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ public function display(Closure $callback)
303303
}
304304

305305
/**
306-
* Set value mapping.
306+
* Display column using array value map.
307307
*
308308
* @param array $values
309309
* @param null $default
310310
*
311311
* @return $this
312312
*/
313-
public function values(array $values, $default = null)
313+
public function using(array $values, $default = null)
314314
{
315315
return $this->display(function ($value) use ($values, $default) {
316316
return array_get($values, $value, $default);

src/Show/Field.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ public function as(callable $callable)
134134
}
135135

136136
/**
137-
* Set value mapping.
137+
* Display field using array value map.
138138
*
139139
* @param array $values
140140
* @param null $default
141141
*
142142
* @return $this
143143
*/
144-
public function values(array $values, $default = null)
144+
public function using(array $values, $default = null)
145145
{
146146
return $this->as(function ($value) use ($values, $default) {
147147
return array_get($values, $value, $default);

0 commit comments

Comments
 (0)