| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait ClassTools |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Create hash string from current class properties and itself values. |
||
| 13 | * This method is good stuff for caching dynamic instances |
||
| 14 | * @return string|null |
||
| 15 | */ |
||
| 16 | public function createStringClassSnapshotHash() |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get method required arguments count |
||
| 27 | * @param $class |
||
| 28 | * @param string $method |
||
| 29 | * @return int |
||
| 30 | */ |
||
| 31 | public function getMethodRequiredArgCount($class, string $method): int |
||
| 45 |