php-parser/comment/comment.go

18 lines
272 B
Go
Raw Normal View History

2018-01-02 22:12:28 +00:00
package comment
2018-04-15 12:55:33 +00:00
// Comment aggrigates information about comment /**
type Comment struct {
value string
2018-01-02 22:12:28 +00:00
}
2018-01-08 22:30:28 +00:00
2018-04-15 12:55:33 +00:00
// NewComment - Comment constructor
func NewComment(value string) *Comment {
return &Comment{
value,
}
}
2018-01-08 22:30:28 +00:00
2018-04-15 12:55:33 +00:00
func (c *Comment) String() string {
return c.value
2018-01-08 22:30:28 +00:00
}