public function resourceName($value = null) { if ($value !== null) { return $this->config('name', $value); } if (empty($this->_config['name'])) { $this->config('name', $this->_deriveResourceName()); } return $this->config('name'); }