for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\WebhookClient;
class WebhookConfigRepository
{
/** @var \Spatie\WebhookClient\WebhookConfig[] */
protected $configs;
public function addConfig(WebhookConfig $webhookConfig)
$this->configs[$webhookConfig->name] = $webhookConfig;
}
public function getConfig(string $name): ?WebhookConfig
return $this->configs[$name] ?? null;