<?php
+/**
+ * Class CRM_Utils_OptionBag
+ */
class CRM_Utils_OptionBag implements ArrayAccess, IteratorAggregate, Countable {
protected $data;
+ /**
+ * @param array $data
+ */
public function __construct($data = array()) {
$this->data = $data;
}
}
}
+ /**
+ * @param $key
+ *
+ * @return bool
+ */
public function has($key) {
return isset($this->data[$key]);
}
}
-}
\ No newline at end of file
+}