We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b8bb1d commit d9a5ef7Copy full SHA for d9a5ef7
src/product/TariffTypeDefinition.php
@@ -48,6 +48,17 @@ public function withBehaviors(): TariffTypeBehaviorCollection
48
return $this->behaviorCollection;
49
}
50
51
+ public function hasBehavior(string $behaviorClassName): bool
52
+ {
53
+ foreach ($this->behaviorCollection as $behavior) {
54
+ if ($behavior instanceof $behaviorClassName) {
55
+ return true;
56
+ }
57
58
+
59
+ return false;
60
61
62
public function end(): self
63
{
64
// Validate the TariffType and lock its state
0 commit comments