mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-04 05:57:25 +02:00
cs
This commit is contained in:
@@ -24,7 +24,7 @@ class GermanFactory extends FactoryMethod
|
||||
|
||||
return $obj;
|
||||
break;
|
||||
default :
|
||||
default:
|
||||
throw new \InvalidArgumentException("$type is not a valid vehicle");
|
||||
}
|
||||
}
|
||||
|
@@ -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