| Conditions | 5 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function __construct( $typeId, $dataValueType ) { |
||
| 43 | if ( !is_string( $typeId ) || $typeId === '' ) { |
||
| 44 | throw new InvalidArgumentException( '$typeId must be a non-empty string' ); |
||
| 45 | } |
||
| 46 | |||
| 47 | if ( !is_string( $dataValueType ) || $dataValueType === '' ) { |
||
| 48 | throw new InvalidArgumentException( '$dataValueType must be a non-empty string' ); |
||
| 49 | } |
||
| 50 | |||
| 51 | $this->typeId = $typeId; |
||
| 52 | $this->dataValueType = $dataValueType; |
||
| 53 | } |
||
| 54 | |||
| 98 |