09 2015 档案
摘要:<?phpclass Preferences { private static $instance; private function __construct() { } public static function getInstance() { if (empty...
阅读全文
摘要:units, true)) { return ; } $this->units[] = $unit; } public function remove_unit(Unit $unit) { $this->units = ar...
阅读全文
摘要:state = $value; } } public function __get($param) { if ($param == 'state') { return $this->state; } } publ...
阅读全文
摘要:_adaptee = new Adaptee(); } public function request() { $this->_adaptee->special_request(); }}$target = new Adapter();$target->request...
阅读全文
摘要:"; $context->state = new Concrete_state_B(); }}class Concrete_state_B extends State { public function handle(Context $context) { e...
阅读全文
摘要:_name = $name; } public function __get($name) { if ($name == '_name') { return $this->_name; } } public function ...
阅读全文
浙公网安备 33010602011771号