public function getValues()
    {
        $result = [];
        $defaults = $this->defaults();
        foreach ($defaults as $name => $value) {
            if ($this->getData()->has($name)) {
                $result[$name] = $this->getData()->get($name);
            } else {
                $result[$name] = $value;
            }
        }
        return $result;
    }
public function getValues()
    {
        $result = [];
        $defaults = $this->defaults();
        foreach ($defaults as $name => $value) {
            if ($this->getData()->has($name)) {
                $result[$name] = $this->getData()->get($name);
            } else {
                $result[$name] = $value;
            }
        }
        return $result;
    }
public function getValues ( ) { $ result = [ ] ; $ defaults = $ this -> defaults ( ) ; foreach ( $ defaults as $ name => $ value ) { if ( $ this -> getData ( ) -> has ( $ name ) ) { $ result [ $ name ] = $ this -> getData ( ) -> get ( $ name ) ; } else { $ result [ $ name ] = $ value ; } } return $ result ; }
Get merged name=>value pairs
@return array
Get merged name = > value pairs