php-parser/comment/doc_comment.go

18 lines
290 B
Go
Raw Normal View History

2018-01-03 00:12:28 +02:00
package comment
2018-01-12 08:23:58 +02:00
// DocComment represents comments that start /**
2018-01-03 00:12:28 +02:00
type DocComment struct {
value string
}
2018-01-12 08:23:58 +02:00
// NewDocComment - DocComment constructor
2018-01-08 21:50:39 +02:00
func NewDocComment(value string) *DocComment {
2018-01-03 00:12:28 +02:00
return &DocComment{
value,
}
}
func (c *DocComment) String() string {
return c.value
}