ba9eda1a9b
Props Frank Klein. Fixes #37523. git-svn-id: https://develop.svn.wordpress.org/trunk@38285 602fd350-edb4-49c9-b593-d223f7449a82
30 lines
499 B
PHP
30 lines
499 B
PHP
<?php
|
|
|
|
class Basic_Object {
|
|
private $foo = 'bar';
|
|
|
|
public function __get( $name ) {
|
|
return $this->$name;
|
|
}
|
|
|
|
public function __set( $name, $value ) {
|
|
return $this->$name = $value;
|
|
}
|
|
|
|
public function __isset( $name ) {
|
|
return isset( $this->$name );
|
|
}
|
|
|
|
public function __unset( $name ) {
|
|
unset( $this->$name );
|
|
}
|
|
|
|
public function __call( $name, $arguments ) {
|
|
return call_user_func_array( array( $this, $name ), $arguments );
|
|
}
|
|
|
|
private function callMe() {
|
|
return 'maybe';
|
|
}
|
|
}
|