You are here

class ArrayHelperTestObject in Helper 7

Hierarchy

Expanded class hierarchy of ArrayHelperTestObject

File

tests/ArrayHelperTest.test, line 195

View source
class ArrayHelperTestObject {
  private $data;
  public function __construct(array $data = array()) {
    $this->data = $data;
  }
  public function __get($key) {
    if (array_key_exists($key, $this->data)) {
      return $this->data[$key];
    }
  }
  public function __set($key, $value) {
    $this->data[$key] = $value;
  }

}

Members