/** * __construct * * The constructor camelize the method * @param string $method * @param array $params */ public function __construct($method, $params) { $method = copperStr::camelize($method); $this->model = copperConfig::get("model"); $this->{$method}($params); }