📅  最后修改于: 2022-03-11 14:57:11.711000             🧑  作者: Mango
代码示例1
class DoorFactory
{
public static function makeDoor($width, $height): Door
{
return new WoodenDoor($width, $height);
}
}