protected function _getType($data) { if (empty($data[$this->alias]['type'])) { $type = is_null($this->type) ? self::DEFAULT_TYPE : $this->type; } else { $type = $data[$this->alias]['type']; } return $type; }