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 2debfd6 commit 6c438e0Copy full SHA for 6c438e0
1 file changed
src/PhpGenerator/Traits/TraitsAware.php
@@ -67,4 +67,10 @@ public function removeTrait(string $name): static
67
unset($this->traits[$name]);
68
return $this;
69
}
70
+
71
72
+ public function hasTrait(string $name): bool
73
+ {
74
+ return isset($this->traits[$name]);
75
+ }
76
0 commit comments