Sorry, we don't support your browser.  Install a modern browser

Make Obj class a little more useful#352

Since the Obj is the object returned by database queries (and perhaps other places), I’d not mind to do it a little more useful, for instance:

  • ->set(): +returning the modified allow for better chaining and using in a map calls
  • ->has(): simplifies propery_exists($obj, 'prop') calls greatly
  • ->remove(): just a sugar over unset $obj->prop
  • ->pull(): ->get() and ->remove() combined
a year ago