[PHP]Calling dynamic method by name


if (method_exists($this, $method)) {
    return $this->$method($data);
} else {
    throw new EntityException('Not found method');
}