protected function _codeType() { if ($this->_states['php']) { return $this->_states['current']->hasMethods ? 'attribute' : 'code'; } return 'plain'; }