public function fromHash($hash) { if ($hash === null) { return $this->getEmptyValue(); } return $this->createValue($hash); }