Completed
Pull Request — master (#4)
by Mariano
04:20
created

PhpReflectionService::getClassProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
namespace Mcustiel\SimpleRequest\Services;
3
4
use Mcustiel\SimpleRequest\Interfaces\ReflectionService;
5
6
class PhpReflectionService implements ReflectionService
7
{
8
    /**
9
     * {@inheritdoc}
10
     *
11
     * @see \Mcustiel\SimpleRequest\Interfaces\ReflectionService::getClassProperties()
12
     */
13 93
    public function getClassProperties($className)
14
    {
15 93
        $reflection = new \ReflectionClass($className);
16 93
        return $reflection->getProperties();
17
    }
18
}
19