| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct( $propertyId, $snakRole, EntityId $subjectId, $statementRank ) { |
||
| 30 | if ( !is_string( $propertyId ) ) { |
||
| 31 | throw new InvalidArgumentException( '$propertyId needs to be a string' ); |
||
| 32 | } |
||
| 33 | |||
| 34 | if ( !is_int( $snakRole ) ) { |
||
| 35 | throw new InvalidArgumentException( '$snakRole needs to be an integer' ); |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->propertyId = $propertyId; |
||
| 39 | $this->snakRole = $snakRole; |
||
| 40 | $this->subjectId = $subjectId; |
||
| 41 | $this->statementRank = $statementRank; |
||
| 42 | } |
||
| 43 | |||
| 73 |