mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-01 07:37:34 -04:00
25 lines
449 B
PHP
25 lines
449 B
PHP
<?php namespace App\Ninja\Intents;
|
|
|
|
|
|
class BaseIntent
|
|
{
|
|
protected $parameters;
|
|
|
|
public function __construct($parameters)
|
|
{
|
|
$this->parameters = $parameters;
|
|
}
|
|
|
|
public static function createIntent($intentType, $parameters)
|
|
{
|
|
$className = "App\\Ninja\\Intents\\{$intentType}Intent";
|
|
return new $className($parameters);
|
|
}
|
|
|
|
public function process()
|
|
{
|
|
// do nothing by default
|
|
}
|
|
|
|
}
|