[PHP]Calling dynamic method by name
22 Apr 2018
if (method_exists($this, $method)) {
return $this->$method($data);
} else {
throw new EntityException('Not found method');
}
if (method_exists($this, $method)) {
return $this->$method($data);
} else {
throw new EntityException('Not found method');
}