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://pwwzsj.com/article/ihogdh.html