1 | <?php |
||
11 | class Transaction |
||
12 | { |
||
13 | private $instance; |
||
14 | private $config; |
||
15 | private $formatter; |
||
16 | private $isBackground; |
||
|
|||
17 | |||
18 | /** |
||
19 | * Transaction constructor. |
||
20 | * @param $instance |
||
21 | * @param TransactionConfig $config |
||
22 | */ |
||
23 | 13 | public function __construct($instance, TransactionConfig $config) |
|
37 | |||
38 | /** |
||
39 | * @param FormatterInterface $formatter |
||
40 | */ |
||
41 | public function setFormatter(FormatterInterface $formatter) |
||
45 | |||
46 | /** |
||
47 | * @param string $name |
||
48 | * @param $arguments |
||
49 | * @return mixed |
||
50 | * @throws \Exception |
||
51 | */ |
||
52 | 11 | public function __call($name, $arguments) |
|
65 | |||
66 | /** |
||
67 | * @param $customParameters |
||
68 | */ |
||
69 | 11 | private function addNewRelicParameter($customParameters) |
|
79 | |||
80 | /** |
||
81 | * @param string $name |
||
82 | * @param mixed $arguments |
||
83 | */ |
||
84 | 11 | private function transactionStart($name, $arguments) |
|
100 | |||
101 | /** |
||
102 | * @param $name |
||
103 | * @return bool |
||
104 | */ |
||
105 | 11 | private function shouldBeMonitored($name) |
|
109 | |||
110 | /** |
||
111 | * @param $name |
||
112 | */ |
||
113 | 11 | private function transactionEnd($name) |
|
121 | |||
122 | /** |
||
123 | * @param $name |
||
124 | * @param \Exception $genericException |
||
125 | */ |
||
126 | 3 | private function transactionFail($name, \Exception $genericException) |
|
134 | } |
||
135 |
This check marks private properties in classes that are never used. Those properties can be removed.