Esempio n. 1
0
 public static function main()
 {
     $adaptee = new Adaptee();
     $adapter = new Adapter($adaptee);
     $adapter->request();
     $adaptee = null;
     $adapter = null;
 }
Esempio n. 2
0
 public function testAdapter()
 {
     $adapter = new Adapter();
     $adapter->request();
 }