ReferenceHelper::modelToReference()   A
last analyzed

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
 * 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