|
@@ 744-752 (lines=9) @@
|
| 741 |
|
} |
| 742 |
|
} |
| 743 |
|
|
| 744 |
|
public static function propertyExists($classOrObject, $property, $message = '') |
| 745 |
|
{ |
| 746 |
|
if (!property_exists($classOrObject, $property)) { |
| 747 |
|
throw static::createInvalidArgumentException(sprintf( |
| 748 |
|
$message ?: 'Expected the property %s to exist.', |
| 749 |
|
static::valueToString($property) |
| 750 |
|
)); |
| 751 |
|
} |
| 752 |
|
} |
| 753 |
|
|
| 754 |
|
public static function propertyNotExists($classOrObject, $property, $message = '') |
| 755 |
|
{ |
|
@@ 754-762 (lines=9) @@
|
| 751 |
|
} |
| 752 |
|
} |
| 753 |
|
|
| 754 |
|
public static function propertyNotExists($classOrObject, $property, $message = '') |
| 755 |
|
{ |
| 756 |
|
if (property_exists($classOrObject, $property)) { |
| 757 |
|
throw static::createInvalidArgumentException(sprintf( |
| 758 |
|
$message ?: 'Expected the property %s to not exist.', |
| 759 |
|
static::valueToString($property) |
| 760 |
|
)); |
| 761 |
|
} |
| 762 |
|
} |
| 763 |
|
|
| 764 |
|
public static function methodExists($classOrObject, $method, $message = '') |
| 765 |
|
{ |