Completed
Push — master ( a02710...7ee086 )
by Jelle
09:44
created

PropertyDefinition   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 26
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 3 1
A getEntityType() 0 3 1
A isArray() 0 3 1
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace TheSportsDb\PropertyMapper;
10
11
/**
12
 * Description of Property
13
 *
14
 * @author drupalpro
15
 */
16
class PropertyDefinition {
17
18
  protected $name;
19
20
  protected $entityType;
21
22
  protected $isArray;
23
24
  public function __construct($name, $entityType = NULL, $isArray = FALSE) {
25
    $this->name = $name;
26
    $this->entityType = $entityType;
27
    $this->isArray = $isArray;
28
  }
29
30
  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...
31
    return $this->name;
32
  }
33
34
  public function getEntityType() {
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...
35
    return $this->entityType;
36
  }
37
38
  public function isArray() {
39
    return $this->isArray;
40
  }
41
}
42