for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TechDeCo\ElasticApmAgent\Message;
use JsonSerializable;
use TechDeCo\ElasticApmAgent\Serialization;
final class System implements JsonSerializable
{
/**
* @var string|null
*/
private $architecture;
private $hostname;
private $platform;
public function onArchitecture(string $architecture): self
$me = clone $this;
$me->architecture = $architecture;
return $me;
}
public function atHost(string $hostname): self
$me->hostname = $hostname;
public function onPlatform(string $platform): self
$me->platform = $platform;
* @return mixed[]
public function jsonSerialize(): array
return Serialization::filterUnset([
'hostname' => $this->hostname,
'architecture' => $this->architecture,
'platform' => $this->platform,
]);