pèassaggio su rete esterna da sistemare tag mailinglist

This commit is contained in:
2026-06-17 18:15:13 +02:00
parent 6909e21b67
commit 9d649180a6
2432 changed files with 25 additions and 322208 deletions
-30
View File
@@ -1,30 +0,0 @@
<?php
declare(strict_types=1);
namespace Laravel\AgentDetector;
class AgentResult
{
public readonly bool $isAgent;
public function __construct(public readonly ?string $name = null)
{
$this->isAgent = $name !== null;
}
public static function forAgent(KnownAgent|string $name): self
{
return new self($name instanceof KnownAgent ? $name->value : $name);
}
public static function noAgent(): self
{
return new self();
}
public function knownAgent(): ?KnownAgent
{
return KnownAgent::tryFrom($this->name ?? '');
}
}