proofit404 / stories

Service objects designed with OOP in mind.
https://proofit404.github.io/stories/
BSD 2-Clause "Simplified" License
297 stars 21 forks source link

Deny to pass undeclared argument. #681

Closed proofit404 closed 2 years ago

proofit404 commented 3 years ago

Only arguments declared in the State subclass are allowed to be passed in its constructor.

Variable declaration does not make its available for constructor.

Test both situations: other arguments were defined and no arguments were defined at all.