Reputation
Top tag
Next privilege 50 Rep.
Comment everywhere
Badges
5
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 3 votes cast
Sep
24
awarded  Autobiographer
May
2
awarded  Popular Question
Sep
6
awarded  Scholar
Sep
6
awarded  Supporter
Sep
6
accepted Best Method of function parameter validation
Sep
5
comment Best Method of function parameter validation
So in essence we will create a different object for each simple type that we can expect. So I could create a Value object that has the restraint of being non-negative and then use that as the parameter instead.
Sep
5
comment Best Method of function parameter validation
Thanks, I'll take a look at it.
Sep
5
comment Best Method of function parameter validation
Yeah, I've done a little research into that. Unfortunately I don't think PHP has any built-in method of AOP. IS there a specific technology or package that you can reference for me to see the practice in action.
Sep
5
comment Best Method of function parameter validation
Yeah these are user defined functions or methods. I was hoping to get some community advice on what those well-established ways are, most of my googling hasn't turned up a good blog entry, maybe I'm using the wrong phrasing, though I have seen the below AOP reference before.
Sep
5
awarded  Student
Sep
5
asked Best Method of function parameter validation