public function serialize($value) : string { if (!is_int($value)) { throw InvalidValueException::valueDoesNotMatchType($this, $value); } return (string) $value; }