protected function gValue($value) { $hash = $this->itemHash; $level = $this->activityLevel->level; if ($this->activityLevel->definition->activityType->isWeekly()) { return array_get($this->patches, "{$hash}.{$level}", $value); } return $value; }