Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace FluentCrm\App\Api;
|
||||
|
||||
final class FCApi
|
||||
{
|
||||
private $instance = null;
|
||||
|
||||
public function __construct($instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
public function __call($method, $params)
|
||||
{
|
||||
try {
|
||||
return call_user_func_array([$this->instance, $method], $params);
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user