PHP - Create a Closure