private function hydrate(array $data = []): void
    {
        foreach ($data as $key => $value) {
            /* https://github.com/facebook/hhvm/issues/6368 */
            $key = str_replace(".", " ", $key);
            $method = lcfirst(ucwords($key));
            $method = str_replace(" ", "", $method);
            if (method_exists($this, $method)) {
                /* Try to use setter */
                call_user_func([$this, $method], $value);
            } else {
                /* Or fallback to setting option directly */
                $this->options[$key] = $value;
            }
        }
    }
private function hydrate(array $data = []): void
    {
        foreach ($data as $key => $value) {
            /* https://github.com/facebook/hhvm/issues/6368 */
            $key = str_replace(".", " ", $key);
            $method = lcfirst(ucwords($key));
            $method = str_replace(" ", "", $method);
            if (method_exists($this, $method)) {
                /* Try to use setter */
                call_user_func([$this, $method], $value);
            } else {
                /* Or fallback to setting option directly */
                $this->options[$key] = $value;
            }
        }
    }
private function hydrate ( array $ data = [ ] ) : void { foreach ( $ data as $ key => $ value ) { /* https://github.com/facebook/hhvm/issues/6368 */ $ key = str_replace ( "." , " " , $ key ) ; $ method = lcfirst ( ucwords ( $ key ) ) ; $ method = str_replace ( " " , "" , $ method ) ; if ( method_exists ( $ this , $ method ) ) { /* Try to use setter */ call_user_func ( [ $ this , $ method ] , $ value ) ; } else { /* Or fallback to setting option directly */ $ this -> options [ $ key ] = $ value ; } } }
Hydrate all options from given array.
Hydrate all options from given array .