Skip to content

Commit

Permalink
feat(signal_unit): SetKind and SetSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
FerroO2000 committed Oct 25, 2024
1 parent 1bd2853 commit a3fa74f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions signal_unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,13 @@ func (su *SignalUnit) Symbol() string {
func (su *SignalUnit) SetName(name string) {
su.name = name
}

// SetKind sets the kind of the [SignalUnit] to the given one.
func (su *SignalUnit) SetKind(kind SignalUnitKind) {
su.kind = kind
}

// SetSymbol sets the symbol of the [SignalUnit] to the given one.
func (su *SignalUnit) SetSymbol(symbol string) {
su.symbol = symbol
}

0 comments on commit a3fa74f

Please sign in to comment.