BaseEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 16
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A methodExists() 0 4 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Created by PhpStorm.
5
 * User: benedikt
6
 * Date: 9/16/17
7
 * Time: 2:05 AM
8
 */
9
10
namespace Tfboe\FmLib\Entity\Helpers;
11
12
13
/**
14
 * Class BaseEntity
15
 * @package Tfboe\FmLib\Entity\Helpers
16
 */
17
abstract class BaseEntity implements BaseEntityInterface
18
{
19
20
//<editor-fold desc="Public Methods">
21
22
  /**
23
   * Checks if the given method exists
24
   * @param string $method the method to search
25
   * @return bool true if it exists and false otherwise
26
   */
27
  public function methodExists(string $method): bool
28
  {
29
    return method_exists($this, $method);
30
  }
31
//</editor-fold desc="Public Methods">
32
}