@@ 1531-1539 (lines=9) @@ | ||
1528 | * |
|
1529 | * @throws InvalidArgumentException |
|
1530 | */ |
|
1531 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
1532 | { |
|
1533 | if (\property_exists($classOrObject, $property)) { |
|
1534 | static::reportInvalidArgument(\sprintf( |
|
1535 | $message ?: 'Expected the property %s to not exist.', |
|
1536 | static::valueToString($property) |
|
1537 | )); |
|
1538 | } |
|
1539 | } |
|
1540 | ||
1541 | /** |
|
1542 | * @param string|object $classOrObject |
|
@@ 1514-1522 (lines=9) @@ | ||
1511 | * |
|
1512 | * @throws InvalidArgumentException |
|
1513 | */ |
|
1514 | public static function propertyExists($classOrObject, $property, $message = '') |
|
1515 | { |
|
1516 | if (!\property_exists($classOrObject, $property)) { |
|
1517 | static::reportInvalidArgument(\sprintf( |
|
1518 | $message ?: 'Expected the property %s to exist.', |
|
1519 | static::valueToString($property) |
|
1520 | )); |
|
1521 | } |
|
1522 | } |
|
1523 | ||
1524 | /** |
|
1525 | * @param string|object $classOrObject |