/** * Add an integration to the project. * * @param string $type * @param array $data * * @return Integration */ public function addIntegration($type, array $data = []) { $body = ['type' => $type] + $data; return Integration::create($body, $this->getLink('integrations'), $this->client); }