public static function hydrate(stdClass $census)
    {
        $hydrated = new CensusEntity();

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

        if (isset($census->scans)) {
            $hydrated->setScans($census->scans);
        }

        if (isset($census->issues)) {
            $hydrated->setIssues($census->issues);
        }

        if (isset($census->loc)) {
            $hydrated->setLoc($census->loc);
        }

        return $hydrated;
    }
public static function hydrate(stdClass $census)
    {
        $hydrated = new CensusEntity();

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

        if (isset($census->scans)) {
            $hydrated->setScans($census->scans);
        }

        if (isset($census->issues)) {
            $hydrated->setIssues($census->issues);
        }

        if (isset($census->loc)) {
            $hydrated->setLoc($census->loc);
        }

        return $hydrated;
    }
public static function hydrate ( stdClass $ census ) { $ hydrated = new CensusEntity ( ) ; if ( isset ( $ census -> id ) ) { $ hydrated -> setId ( $ census -> id ) ; } if ( isset ( $ census -> scans ) ) { $ hydrated -> setScans ( $ census -> scans ) ; } if ( isset ( $ census -> issues ) ) { $ hydrated -> setIssues ( $ census -> issues ) ; } if ( isset ( $ census -> loc ) ) { $ hydrated -> setLoc ( $ census -> loc ) ; } return $ hydrated ; }
Hydrate a census object into a CensusEntity object

@param \stdClass $census
@return CensusEntity
Hydrate a census object into a CensusEntity object