protected function extractBinaries(&$attributes)
    {
        // If attributes contains binary field
        // extract binary fields to new array
        $binaries = [];
        if ($this->checkBinary($attributes) && $this->getConnection() instanceof Oci8Connection) {
            foreach ($attributes as $key => $value) {
                if (in_array($key, $this->binaries)) {
                    $binaries[$key] = $value;
                    unset($attributes[$key]);
                }
            }
        }

        return $this->binaryFields = $binaries;
    }
protected function extractBinaries(&$attributes)
    {
        // If attributes contains binary field
        // extract binary fields to new array
        $binaries = [];
        if ($this->checkBinary($attributes) && $this->getConnection() instanceof Oci8Connection) {
            foreach ($attributes as $key => $value) {
                if (in_array($key, $this->binaries)) {
                    $binaries[$key] = $value;
                    unset($attributes[$key]);
                }
            }
        }

        return $this->binaryFields = $binaries;
    }
protected function extractBinaries ( & $ attributes ) { // If attributes contains binary field // extract binary fields to new array $ binaries = [ ] ; if ( $ this -> checkBinary ( $ attributes ) && $ this -> getConnection ( ) instanceof Oci8Connection ) { foreach ( $ attributes as $ key => $ value ) { if ( in_array ( $ key , $ this -> binaries ) ) { $ binaries [ $ key ] = $ value ; unset ( $ attributes [ $ key ] ) ; } } } return $ this -> binaryFields = $ binaries ; }
Extract binary fields from given attributes.

@param  array $attributes
@return array
Extract binary fields from given attributes .