Skip to content

Commit 6c438e0

Browse files
tm1000dg
authored andcommitted
Added TraitsAware::hasTrait method (#163)
1 parent 2debfd6 commit 6c438e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/PhpGenerator/Traits/TraitsAware.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,10 @@ public function removeTrait(string $name): static
6767
unset($this->traits[$name]);
6868
return $this;
6969
}
70+
71+
72+
public function hasTrait(string $name): bool
73+
{
74+
return isset($this->traits[$name]);
75+
}
7076
}

0 commit comments

Comments
 (0)