BaseEnum   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 5 1
1
<?php
2
namespace Jleagle\BattleNet\Enums;
3
4
class BaseEnum
5
{
6
  public static function toArray()
7
  {
8
    $reflection = new \ReflectionClass(new static);
9
    return $reflection->getConstants();
10
  }
11
}
12