_validate = $validate; $this->_default = $default; } public function validate($value) { return call_user_func($this->_validate, $value); } public function getDefault() { return $this->validate(call_user_func($this->_default)); } }