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';
|
|
}
|
|
}
|