num = $num; $this->test = function ($source, $args, $context) { return $this->num + $args['addend1'] + $context['addend2']; }; } }