|  | @@ 1621-1629 (lines=9) @@ | 
                                                            
                                    | 1618 |  |      * | 
                                                            
                                    | 1619 |  |      * @throws InvalidArgumentException | 
                                                            
                                    | 1620 |  |      */ | 
                                                            
                                    | 1621 |  |     public static function methodExists($classOrObject, $method, $message = '') | 
                                                            
                                    | 1622 |  |     { | 
                                                            
                                    | 1623 |  |         if (!(\is_string($classOrObject) || \is_object($classOrObject)) || !\method_exists($classOrObject, $method)) { | 
                                                            
                                    | 1624 |  |             static::reportInvalidArgument(\sprintf( | 
                                                            
                                    | 1625 |  |                 $message ?: 'Expected the method %s to exist.', | 
                                                            
                                    | 1626 |  |                 static::valueToString($method) | 
                                                            
                                    | 1627 |  |             )); | 
                                                            
                                    | 1628 |  |         } | 
                                                            
                                    | 1629 |  |     } | 
                                                            
                                    | 1630 |  |  | 
                                                            
                                    | 1631 |  |     /** | 
                                                            
                                    | 1632 |  |      * @psalm-pure | 
                                                                                
                                |  | @@ 1641-1649 (lines=9) @@ | 
                                                            
                                    | 1638 |  |      * | 
                                                            
                                    | 1639 |  |      * @throws InvalidArgumentException | 
                                                            
                                    | 1640 |  |      */ | 
                                                            
                                    | 1641 |  |     public static function methodNotExists($classOrObject, $method, $message = '') | 
                                                            
                                    | 1642 |  |     { | 
                                                            
                                    | 1643 |  |         if ((\is_string($classOrObject) || \is_object($classOrObject)) && \method_exists($classOrObject, $method)) { | 
                                                            
                                    | 1644 |  |             static::reportInvalidArgument(\sprintf( | 
                                                            
                                    | 1645 |  |                 $message ?: 'Expected the method %s to not exist.', | 
                                                            
                                    | 1646 |  |                 static::valueToString($method) | 
                                                            
                                    | 1647 |  |             )); | 
                                                            
                                    | 1648 |  |         } | 
                                                            
                                    | 1649 |  |     } | 
                                                            
                                    | 1650 |  |  | 
                                                            
                                    | 1651 |  |     /** | 
                                                            
                                    | 1652 |  |      * @psalm-pure |