* Sets the priority of the rule * @param {integer} priority (>=1) - increasing the priority causes the rule to be run prior to other rules
(priority)
| 48 | * @param {integer} priority (>=1) - increasing the priority causes the rule to be run prior to other rules |
| 49 | */ |
| 50 | setPriority (priority) { |
| 51 | priority = parseInt(priority, 10) |
| 52 | if (priority <= 0) throw new Error('Priority must be greater than zero') |
| 53 | this.priority = priority |
| 54 | return this |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Sets the name of the rule |
no outgoing calls
no test coverage detected