| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | #[Immutable] |
||
| 25 | final class TransactionHelper |
||
| 26 | { |
||
| 27 | private function __construct() {} |
||
| 28 | |||
| 29 | public static function isTransactional(object|string $target): bool |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function getTransactional(object|string $target): array |
||
| 35 | { |
||
| 36 | return AttributeHelper::getAttributes($target, Transactional::class); |
||
| 37 | } |
||
| 38 | |||
| 39 | public static function isDispatchable(object|string $target, CommitType ...$commitTypes): bool |
||
| 46 | ; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |