public function rowToElggRelationship($row) { if ($row instanceof \stdClass) { return new \ElggRelationship($row); } return false; }