Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | trait Profileable |
||
9 | { |
||
10 | private ?ProfileFactory $profileFactory = null; |
||
11 | |||
12 | public function createProfile(string $transactionName): Profile |
||
13 | { |
||
14 | return $this->getProfileFactory()->create($transactionName); |
||
15 | } |
||
16 | |||
17 | public function setProfileFactory(ProfileFactory $profileFactory): void |
||
20 | } |
||
21 | |||
22 | private function getProfileFactory(): ProfileFactory |
||
31 |