public static function hydrate(stdClass $sanitizer)
    {
        $hydrated = new SanitizerEntity();

        if (isset($sanitizer->id)) {
            $hydrated->setId($sanitizer->id);
        }

        if (isset($sanitizer->class)) {
            $hydrated->setClass($sanitizer->class);
        }

        if (isset($sanitizer->method)) {
            $hydrated->setMethod($sanitizer->method);
        }

        if (isset($sanitizer->parameter)) {
            $hydrated->setParameter($sanitizer->parameter);
        }

        if (isset($sanitizer->characters)) {
            $hydrated->setCharacters($sanitizer->characters);
        }

        if (isset($sanitizer->issueType)) {
            $hydrated->setIssueType(TypeHydrator::hydrate($sanitizer->issueType));
        }

        return $hydrated;
    }