BaseEnum::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
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