Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function __construct( $internalSnakType, $propertyId, $snakRole, EntityId $subjectId, $statementRank ) { |
||
29 | if ( !in_array( $internalSnakType, array( self::TYPE_NO_VALUE, self::TYPE_SOME_VALUE ), true ) ) { |
||
30 | throw new InvalidArgumentException( 'Invalid internal snak type provided' ); |
||
31 | } |
||
32 | |||
33 | parent::__construct( $propertyId, $snakRole, $subjectId, $statementRank ); |
||
34 | |||
35 | $this->internalSnakType = $internalSnakType; |
||
36 | } |
||
37 | |||
46 |