__('Anonymous 0'), '1' => __('Anonymous 1')]; } public function getInvoiceList() { return ['0' => __('Invoice 0'), '1' => __('Invoice 1')]; } public function getUserTypeList() { return ['0' => __('User_type 0'), '1' => __('User_type 1')]; } public function getAnonymousTextAttr($value, $data) { $value = $value ? $value : (isset($data['anonymous']) ? $data['anonymous'] : ''); $list = $this->getAnonymousList(); return isset($list[$value]) ? $list[$value] : ''; } public function getInvoiceTextAttr($value, $data) { $value = $value ? $value : (isset($data['invoice']) ? $data['invoice'] : ''); $list = $this->getInvoiceList(); return isset($list[$value]) ? $list[$value] : ''; } public function getUserTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['user_type']) ? $data['user_type'] : ''); $list = $this->getUserTypeList(); return isset($list[$value]) ? $list[$value] : ''; } }