private function generateDocumentMethod(array $metadata, $template)
    {
        return $this->prefixWithSpaces(
            str_replace(
                ['<methodName>', '<fieldName>'],
                [ucfirst($metadata['field_name']), $metadata['field_name']],
                $template
            )
        );
    }
private function generateDocumentMethod(array $metadata, $template)
    {
        return $this->prefixWithSpaces(
            str_replace(
                ['<methodName>', '<fieldName>'],
                [ucfirst($metadata['field_name']), $metadata['field_name']],
                $template
            )
        );
    }
private function generateDocumentMethod ( array $ metadata , $ template ) { return $ this -> prefixWithSpaces ( str_replace ( [ '<methodName>' , '<fieldName>' ] , [ ucfirst ( $ metadata [ 'field_name' ] ) , $ metadata [ 'field_name' ] ] , $ template ) ) ; }
Generates document method

@param array  $metadata
@param string $template

@return string
Generates document method