Last active
August 29, 2015 14:19
-
-
Save andrew-dixon/e0739cd15c6e3cdbd5f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Person | |
component { | |
public function init(required String firstName, required String lastName) { | |
this.firstName=static.cleanUp(arguments.firstName); | |
this.lastName=static.cleanUp(arguments.lastName); | |
} | |
public static function cleanUp(stringValue) { | |
return trim(arguments.stringValue); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment