public function __construct(ProvisioningDefinition $def, $callback) { // remember for later $this->def = $def; $this->action = $callback; }