src/Core/Model.php
protected function prepareFields($options = [])
    {
        $params = $this->toArray($options);

        if (empty($this->mapper)) {
            return $params;
        }

        foreach ($this->mapper as $modelKey => $apiKey) {
            if(array_key_exists($modelKey,$params)) {
                $params[$apiKey] = $params[$modelKey];
                unset($params[$modelKey]);
            }
        }

        return $params;
    }
protected function prepareFields($options = [])
    {
        $params = $this->toArray($options);

        if (empty($this->mapper)) {
            return $params;
        }

        foreach ($this->mapper as $modelKey => $apiKey) {
            if(array_key_exists($modelKey,$params)) {
                $params[$apiKey] = $params[$modelKey];
                unset($params[$modelKey]);
            }
        }

        return $params;
    }
protected function prepareFields ( $ options = [ ] ) { $ params = $ this -> toArray ( $ options ) ; if ( empty ( $ this -> mapper ) ) { return $ params ; } foreach ( $ this -> mapper as $ modelKey => $ apiKey ) { if ( array_key_exists ( $ modelKey , $ params ) ) { $ params [ $ apiKey ] = $ params [ $ modelKey ] ; unset ( $ params [ $ modelKey ] ) ; } } return $ params ; }
Prepares fields with incorrect property name format

@param array $options
@return array
Prepares fields with incorrect property name format