public function getCached($id): ?Row
    {
        if (!$this->isCached($id)) {
            return null;
        }

        $row = $this->cache[$id];

        if ($row && !$row->id) {
            return $this->cache[$id] = null;
        }

        return $row;
    }
public function getCached($id): ?Row
    {
        if (!$this->isCached($id)) {
            return null;
        }

        $row = $this->cache[$id];

        if ($row && !$row->id) {
            return $this->cache[$id] = null;
        }

        return $row;
    }
public function getCached ( $ id ) : ? Row { if ( ! $ this -> isCached ( $ id ) ) { return null ; } $ row = $ this -> cache [ $ id ] ; if ( $ row && ! $ row -> id ) { return $ this -> cache [ $ id ] = null ; } return $ row ; }
Returns a row from the cache.
@param mixed $id
Returns a row from the cache .