protected function getDateFields($stub, array $fields)
    {
        $dates = [];
        $indentCount = $this->getIndent($stub, $this->getTemplateVariable('dates'));
        $indent = $this->Indent($indentCount - $this->backspaceCount);
        foreach ($fields as $field) {
            if ($field->isDate) {
                $dates[] = sprintf("%s'%s'", $indent, $field->name);
            }
        }

        return $this->makeArrayString($dates, $indentCount - $this->backspaceCount - 4);
    }