Completed
Push — master ( c623e5...795f6c )
by Emmanuel
01:15
created

ReferenceHelper   A

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
10
    public static function modelToReference($model) : string
11
    {
12
        $type = get_class($model);
13
        return "$type,$model->id";
14
    }
15
16
17
}
18