private function asData(array $data)
    {
        foreach ($data as $key => $value) {
            if ($value instanceof RawSqlFragmentInterface) {
                $data[$key] = $value->getFragment();
            } elseif ($value instanceof RawBindingInterface) {
                $data[$key] = $value->getTarget();
            } else {
                $placeholder = $this->getUniqPlaceholder();

                $data[$key] = $placeholder;
                $this->bind($placeholder, $value);
            }
        }

        return $data;
    }
private function asData(array $data)
    {
        foreach ($data as $key => $value) {
            if ($value instanceof RawSqlFragmentInterface) {
                $data[$key] = $value->getFragment();
            } elseif ($value instanceof RawBindingInterface) {
                $data[$key] = $value->getTarget();
            } else {
                $placeholder = $this->getUniqPlaceholder();

                $data[$key] = $placeholder;
                $this->bind($placeholder, $value);
            }
        }

        return $data;
    }
private function asData ( array $ data ) { foreach ( $ data as $ key => $ value ) { if ( $ value instanceof RawSqlFragmentInterface ) { $ data [ $ key ] = $ value -> getFragment ( ) ; } elseif ( $ value instanceof RawBindingInterface ) { $ data [ $ key ] = $ value -> getTarget ( ) ; } else { $ placeholder = $ this -> getUniqPlaceholder ( ) ; $ data [ $ key ] = $ placeholder ; $ this -> bind ( $ placeholder , $ value ) ; } } return $ data ; }
Prepared raw data before a command is executed

@param array $data
@return array
Prepared raw data before a command is executed