__get() 공개 메소드

Magic __get function to dispatch a call to retrieve a private property.
부터: 1.0
public __get ( $key )
예제 #1
0
 public function test_magic_get_method()
 {
     $customer = new Give_Customer('*****@*****.**');
     $this->assertEquals('*****@*****.**', $customer->email);
     $this->assertTrue(is_wp_error($customer->__get('asdf')));
 }