final keyword in PHP
final keyword is used in PHP as final class and final method. A final class is one which cannot be extended. A final method cannot be overridden in extended class.
final keyword is used in PHP as final class and final method. A final class is one which cannot be extended. A final method cannot be overridden in extended class.
If the instance of your class is rarely needed, you can have the static method create an instance, call the non-static method and return the value.