EntityProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEntityIdName() 0 3 2
1
<?php
2
3
namespace seregazhuk\PinterestBot\Api\Providers\Core;
4
5
/**
6
 * Class EntityProvider
7
 * @package seregazhuk\PinterestBot\Api\Providers
8
 *
9
 * @property string entityIdName
10
 */
11
abstract class EntityProvider extends Provider
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $entityIdName;
17
18
    /**
19
     * @return string
20
     */
21
    protected function getEntityIdName()
22
    {
23
        return property_exists($this, 'entityIdName') ? $this->entityIdName : '';
24
    }
25
}
26