mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
cs
This commit is contained in:
@@ -19,7 +19,7 @@ class ItalianFactory extends FactoryMethod
|
||||
case parent::FAST:
|
||||
return new Ferrari();
|
||||
break;
|
||||
default :
|
||||
default:
|
||||
throw new \InvalidArgumentException("$type is not a valid vehicle");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user