Passed
Pull Request — master (#2579)
by Joel
03:54
created

ObjectClassResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
namespace ApiPlatform\Core\Serializer;
4
5
use ApiPlatform\Core\Util\ClassInfoTrait;
6
7
class ObjectClassResolver
8
{
9
    use ClassInfoTrait;
10
11
    public function __invoke($object)
12
    {
13
        return $this->getObjectClass($object);
14
    }
15
}
16