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设计模式之——原型模式
URL标题:http://abwzjs.com/article/ihogdh.html