lib/Property/Property.php 1 location
|
@@ 111-115 (lines=5) @@
|
| 108 |
|
break; |
| 109 |
|
case 'default': |
| 110 |
|
break; |
| 111 |
|
case 'update_notify_listener': |
| 112 |
|
if (($value !== null) && (!$value instanceof UpdateNotifyListenerInterface)) { |
| 113 |
|
throw new \InvalidArgumentException('Update notifications listener must implement UpdateNotifyListenerInterface'); |
| 114 |
|
} |
| 115 |
|
break; |
| 116 |
|
} |
| 117 |
|
return true; |
| 118 |
|
} |
lib/Struct.php 1 location
|
@@ 696-700 (lines=5) @@
|
| 693 |
|
throw new \InvalidArgumentException('Only structure object can be used as parent structure'); |
| 694 |
|
} |
| 695 |
|
break; |
| 696 |
|
case 'update_notify_listener': |
| 697 |
|
if (($value !== null) && (!$value instanceof UpdateNotifyListenerInterface)) { |
| 698 |
|
throw new \InvalidArgumentException('Update notification listener must implement UpdateNotifyListenerInterface interface'); |
| 699 |
|
} |
| 700 |
|
break; |
| 701 |
|
case 'explicit_metadata_class': |
| 702 |
|
if (!is_string($value)) { |
| 703 |
|
throw new \InvalidArgumentException('Explicit metadata class name should be defined as string'); |