Passed
Push — master ( 177093...90a55c )
by Gabriel
02:35
created

Generic::generateNameFromClass()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 10
rs 10
ccs 6
cts 6
cp 1
cc 2
nc 2
nop 0
crap 2
1
<?php
2
3
namespace ByTIC\Models\SmartProperties\Properties\Types;
4
5
use ByTIC\Models\SmartProperties\Properties\AbstractProperty\Generic as GenericProperty;
6
use ReflectionClass;
7
8
/**
9
 * Class Generic
10
 * @package ByTIC\Common\Records\Types
11
 */
12
abstract class Generic extends GenericProperty
13
{
14
    /**
15
     * @var null|string
16
     */
17
    protected $field = 'type';
18
19
    /**
20
     * @return string
21
     */
22
    protected function getLabelSlug()
23
    {
24
        return 'types';
25
    }
26
27
}
28