Source of file CustomAppKeyProvider.php
Size: 0,766 Bytes - Last Modified: 2021-12-23T10:33:41+00:00
/var/www/docs.ssmods.com/process/src/src/CustomAppKeyProvider.php
1234567891011121314151617181920212223242526272829303132333435363738 | <?php declare(strict_types=1); namespace SilverStripe\Raygun; trait CustomAppKeyProvider { /** * Use a custom APP Key instead of the globally defined SS_RAYGUN_APP_KEY * * @var null|string */ private $customRaygunAppKey; /** * Set a custom raygun app key that should be used instead of the * global default * * @param string $key * * @return $this */ public function setCustomRaygunAppKey(string $key): self { $this->customRaygunAppKey = $key; return $this; } /** * Returns the custom raygun app key if set * * @return null|string */ public function getCustomRaygunAppKey(): ?string { return $this->customRaygunAppKey; } } |