52 lines
801 B
PHP
52 lines
801 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace Builder\View\Grid;
|
|
use Builder\View\Grid\Concerns\HasActions;
|
|
use Builder\Traits\JsonBuilder;
|
|
|
|
class Actions extends JsonBuilder
|
|
{
|
|
use HasActions;
|
|
|
|
protected $row;
|
|
protected $key;
|
|
|
|
/**
|
|
* 当前行对象
|
|
* @return mixed
|
|
*/
|
|
public function getRow()
|
|
{
|
|
return $this->row;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $row
|
|
* @return $this
|
|
*/
|
|
public function row($row)
|
|
{
|
|
$this->row = $row;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* 当前行下标
|
|
* @return mixed
|
|
*/
|
|
public function getKey()
|
|
{
|
|
return $this->key;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $key
|
|
* @return $this
|
|
*/
|
|
public function key($key)
|
|
{
|
|
$this->key = $key;
|
|
return $this;
|
|
}
|
|
}
|