public function __call($name, $args) { if (substr($name, 0, 3) == 'set' && isset($args[0])) { $const = strtoupper(substr($name, 3)); $numericValue = ConstantsTable::findNumericValue($const); $this->set($numericValue, $args[0]); } return $this; }