| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 10 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | public function __construct($identifier)  | 
            ||
| 10 |     { | 
            ||
| 11 |         if (is_string($identifier) || is_int($identifier)) { | 
            ||
| 12 |             $this->earning = config('open-payroll.models.earning')::query() | 
            ||
| 13 |                 ->with('type') | 
            ||
| 14 | ->findByHashSlugOrId($identifier);  | 
            ||
| 15 | }  | 
            ||
| 16 | |||
| 17 |         if (is_object($identifier)) { | 
            ||
| 18 | $this->earning($identifier);  | 
            ||
| 19 | }  | 
            ||
| 36 |