getter is a combination of method and properties but it's more like a method that can be used like a property.
getter can never have any arguments so you define it like:
you define a type followed by the keyword get and the name of your getter and you open a block {}.
and inside the blocks you can apply conditions and logics to your needs here is one fully conditioned getter example:
and now when I want to use it I can just use the name of the getter resultPhase as shown below:
resultPhase is the getter that returns a string.
here is the full code: