github.com/goravel/framework@v1.13.9/validation/console/stubs.go (about) 1 package console 2 3 type Stubs struct { 4 } 5 6 func (r Stubs) Request() string { 7 return `package DummyPackage 8 9 import ( 10 "github.com/goravel/framework/contracts/validation" 11 ) 12 13 type DummyRule struct { 14 } 15 16 //Signature The name of the rule. 17 func (receiver *DummyRule) Signature() string { 18 return "DummyName" 19 } 20 21 //Passes Determine if the validation rule passes. 22 func (receiver *DummyRule) Passes(data validation.Data, val any, options ...any) bool { 23 return true 24 } 25 26 //Message Get the validation error message. 27 func (receiver *DummyRule) Message() string { 28 return "" 29 } 30 ` 31 }