Declaring a Method in a METHOD Block
The format you need to use to declare a method in a METHOD block varies slightly depending on whether the method is associated with a database item or an aggregate.
For information on the required format, refer to the relevant section: