php设计模式之——原型模式
obj = $name; } public function getName(){ return $this->obj; } public function setName($name){ $this->obj = $name; } public function copy(){ return clone $this; } } class Client{ public static function main(){ $newson = new Operation('nnnn'); var_dump($newson->copy()); } } Client::main();
文章题目:php设计模式之——原型模式
链接地址:http://cdiso.cn/article/ihogdh.html