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