public function create(string $repoName) {
    $this->getGithubAuthentication()->authenticate();
    $this->getHooksApi()->create($this->getGithubUsername(), $repoName, [
      'name' => 'packagist',
      'config' => [
        'user' => $this->getPackagistUser(),
        'token' => $this->getPackagistApiToken()
      ]
    ]);
  }
public function create(string $repoName) {
    $this->getGithubAuthentication()->authenticate();
    $this->getHooksApi()->create($this->getGithubUsername(), $repoName, [
      'name' => 'packagist',
      'config' => [
        'user' => $this->getPackagistUser(),
        'token' => $this->getPackagistApiToken()
      ]
    ]);
  }
public function create ( string $ repoName ) { $ this -> getGithubAuthentication ( ) -> authenticate ( ) ; $ this -> getHooksApi ( ) -> create ( $ this -> getGithubUsername ( ) , $ repoName , [ 'name' => 'packagist' , 'config' => [ 'user' => $ this -> getPackagistUser ( ) , 'token' => $ this -> getPackagistApiToken ( ) ] ] ) ; }
Authenticates via the client with github api token and then creates the webhook using the hooks model and the packagist username and api token

@param string $repoName the name of the repository the hook will be created in
Authenticates via the client with github api token and then creates the webhook using the hooks model and the packagist username and api token