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

ReferenceHelper::modelToReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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