We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45b25f commit e214aecCopy full SHA for e214aec
README.md
@@ -352,6 +352,17 @@ $rules[] = Rule::allClasses()
352
353
*Note: This rule checks if a class inherits from or implements a given class/interface using PHP's `is_a()` function.*
354
355
+### Is not a (does not inherit from or implement)
356
+
357
+```php
358
+$rules[] = Rule::allClasses()
359
+ ->that(new ResideInOneOfTheseNamespaces('App\Domain\Event'))
360
+ ->should(new IsNotA('App\Domain\DeprecatedEvent'))
361
+ ->because('no event should extend or implement the deprecated base class');
362
+```
363
364
+*Note: This is the symmetrical counterpart of `IsA`. It fails if a class inherits from or implements the given class/interface.*
365
366
### Is abstract
367
368
```php
0 commit comments