public static function hydrate(stdClass $ignore)
    {
        $hydrated = new IgnoredCodeEntity();

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

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

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

        if (isset($ignore->exclude)) {
            $hydrated->setExclude($ignore->exclude);
        }

        return $hydrated;
    }