public static function hydrate(stdClass $taint)
    {
        $hydrated = new TaintEntity();

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

        if (isset($taint->start_line)) {
            $hydrated->setStartLine($taint->start_line);
        }

        if (isset($taint->end_line)) {
            $hydrated->setEndLine($taint->end_line);
        }

        if (isset($taint->start_column)) {
            $hydrated->setStartColumn($taint->start_column);
        }

        if (isset($taint->end_column)) {
            $hydrated->setEndColumn($taint->end_column);
        }

        return $hydrated;
    }
public static function hydrate(stdClass $taint)
    {
        $hydrated = new TaintEntity();

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

        if (isset($taint->start_line)) {
            $hydrated->setStartLine($taint->start_line);
        }

        if (isset($taint->end_line)) {
            $hydrated->setEndLine($taint->end_line);
        }

        if (isset($taint->start_column)) {
            $hydrated->setStartColumn($taint->start_column);
        }

        if (isset($taint->end_column)) {
            $hydrated->setEndColumn($taint->end_column);
        }

        return $hydrated;
    }
public static function hydrate ( stdClass $ taint ) { $ hydrated = new TaintEntity ( ) ; if ( isset ( $ taint -> id ) ) { $ hydrated -> setId ( $ taint -> id ) ; } if ( isset ( $ taint -> start_line ) ) { $ hydrated -> setStartLine ( $ taint -> start_line ) ; } if ( isset ( $ taint -> end_line ) ) { $ hydrated -> setEndLine ( $ taint -> end_line ) ; } if ( isset ( $ taint -> start_column ) ) { $ hydrated -> setStartColumn ( $ taint -> start_column ) ; } if ( isset ( $ taint -> end_column ) ) { $ hydrated -> setEndColumn ( $ taint -> end_column ) ; } return $ hydrated ; }
Hydrate a taint object into a TaintEntity object

@param stdClass $taint
@return TaintEntity
Hydrate a taint object into a TaintEntity object