self cannot be used inside a closure (at least not in PHP 5.3)