php-parser/comment/plain_comment.go

18 lines
311 B
Go
Raw Normal View History

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