public function getRelationship($key) { if (array_key_exists($key, $this->relationships)) { return $this->relationships[$key]; } }