public function __construct(array $defaults = array()) { foreach ($defaults as $key => $value) { $this->defaults[$key] = $value; } }