You are here

public function Unit::__call in TacJS 8

File

src/Unit.php, line 12

Class

Unit
Defines a Unit class.

Namespace

Drupal\tacjs

Code

public function __call($method, array $args = array()) {
  if (!method_exists($this, $method)) {
    throw new BadMethodCallException("method '{$method}' does not exist");
  }
  return call_user_func_array(array(
    $this,
    $method,
  ), $args);
}