for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RemotelyLiving\PHPDNS\Observability\Traits;
use RemotelyLiving\PHPDNS\Observability\Performance\Profile;
use RemotelyLiving\PHPDNS\Observability\Performance\ProfileFactory;
trait Profileable
{
private ?ProfileFactory $profileFactory = null;
public function createProfile(string $transactionName): Profile
return $this->getProfileFactory()->create($transactionName);
}
public function setProfileFactory(ProfileFactory $profileFactory): void
$this->profileFactory = $profileFactory;
private function getProfileFactory(): ProfileFactory
if ($this->profileFactory === null) {
$this->profileFactory = new ProfileFactory();
return $this->profileFactory;
return $this->profileFactory
null
RemotelyLiving\PHPDNS\Ob...formance\ProfileFactory