GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ReflectionPropertyGetter::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Papper\Internal\Access;
4
5
use Papper\Internal\MemberGetterInterface;
6
7
class ReflectionPropertyGetter implements MemberGetterInterface
8
{
9
	private $reflector;
10
11
	public function __construct(\ReflectionProperty $reflector)
12
	{
13
		$this->reflector = $reflector;
14
	}
15
16
	public function getName()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
17
	{
18
		return $this->reflector->name;
19
	}
20
21
	public function getValue($object)
22
	{
23
		return $this->reflector->getValue($object);
24
	}
25
}
26