Pass Controller Variables into a Model
To simply pass the variables to your plugin or module use:

MyPlugin::getInstance()-&gt;checkCommerceRecord($user, $dateTime);


To pass to a service (see the Creating a Service section of the docs) use:

MyPlugin::getInstance()-&gt;myService-&gt;checkCommerceRecord($user, $dateTime);


To pass it with your model use:

$model = new WFWPluginModel(['setUser' =&gt; [$userId, $dateTime]]);

MyPlugin::getInstance()-&gt;myService-&gt;checkCommerceRecord($model);