lstrojny/functional-php — pull request #17 by maxbeutel (2012-08-21 13:48:00+00:00)
Title: added userland implementation for invoke_if()

This is the userland implementation for ``invoke_if()`` which can be used to call a method with or without arguments on an object. If that method does not exist or the object is null, a default value can be used.