php-parser/comment/plain_comment.go

18 lines
311 B
Go
Raw Normal View History

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