public function getRelationship($id) { if (!isset($this->relationships[$id])) { return; } return $this->relationships[$id]; }