protected function prepareAdd($field, $isLast = false)
    {
        $field = trim($field);
        list($name, $type) = explode(':', $field);
        $textArr = [
            "            ->add('",
            $name,
            "', '",
            $type,
            "')",
            ($isLast) ? "" : "\n"
        ];

        return join('', $textArr);
    }
protected function prepareAdd($field, $isLast = false)
    {
        $field = trim($field);
        list($name, $type) = explode(':', $field);
        $textArr = [
            "            ->add('",
            $name,
            "', '",
            $type,
            "')",
            ($isLast) ? "" : "\n"
        ];

        return join('', $textArr);
    }
protected function prepareAdd ( $ field , $ isLast = false ) { $ field = trim ( $ field ) ; list ( $ name , $ type ) = explode ( ':' , $ field ) ; $ textArr = [ "            ->add('" , $ name , "', '" , $ type , "')" , ( $ isLast ) ? "" : "\n" ] ; return join ( '' , $ textArr ) ; }
Prepare template for single add field.

@param string $field
@param bool $isLast
@return string
Prepare template for single add field .