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 VersionedName implements JsonSerializable
{
/**
* @var string
*/
private $name;
private $version;
public function __construct(string $name, string $version)
$this->name = $name;
$this->version = $version;
}
* @return mixed[]
public function jsonSerialize(): array
return Serialization::filterUnset([
'name' => $this->name,
'version' => $this->version,
]);