public function __call($method, $arguments) { if (($prefix = substr($method, 0, 3)) == 'get') { $property = Text::uncamelize(substr($method, 3)); return $this->getData($property); } elseif ($prefix == 'set') { $property = Text::uncamelize(substr($method, 3)); return $this->setData($property, fnGet($arguments, 0)); } throw new ErrorException('Call to undefined method ' . get_class($this) . '::' . $method . '()'); }
public function __call($method, $arguments) { if (($prefix = substr($method, 0, 3)) == 'get') { $property = Text::uncamelize(substr($method, 3)); if (null !== ($result = $this->getData($property)) || $this->checkDataColumn($property)) { return $result; } } elseif ($prefix == 'set') { $property = Text::uncamelize(substr($method, 3)); return $this->setData($property, fnGet($arguments, 0)); } // @codeCoverageIgnoreStart return parent::__call($method, $arguments); // @codeCoverageIgnoreEnd }