Passed
Push — master ( 3a7c7a...fe0bb9 )
by Sam
03:04
created

Human::getDatesOfBirth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Samwilson\SimpleWikidata\Items;
4
5
use Samwilson\SimpleWikidata\Item;
6
7
class Human extends Item {
8
9
	const PROP_DATE_OF_BIRTH = 'P569';
10
	const PROP_FATHER = 'P22';
11
12
		public function getDatesOfBirth() {
13
		return $this->getPropertyOfTypeTime( self::PROP_DATE_OF_BIRTH );
14
	 }
15
16
	/**
17
	 * @return Item[]
18
	 */
19
	public function fathers() {
20
		return $this->getPropertyOfTypeItem( self::PROP_FATHER );
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getPropert...Item(self::PROP_FATHER) returns the type Samwilson\SimpleWikidata\Properties\Item[] which is incompatible with the documented return type Samwilson\SimpleWikidata\Item[].
Loading history...
21
	}
22
23
}
24