ReferenceHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A modelToReference() 0 5 1
1
<?php
2
3
4
namespace RexlManu\LaravelTickets\Helper;
5
6
/**
7
 * Class ReferenceHelper
8
 *
9
 * Provides helper functions for the ticket reference
10
 *
11
 * @package RexlManu\LaravelTickets\Helper
12
 */
13
class ReferenceHelper
14
{
15
16
    public static function modelToReference($model) : string
17
    {
18
        $type = get_class($model);
19
        return "$type,$model->id";
20
    }
21
22
23
}
24