Daniia/Daniia.php
final public function getArray($closure=NULL) {
      $type_fetch = $this->type_fetch;
      $this->type_fetch = 'assoc';
      $this->get();
      $this->type_fetch = $type_fetch;
      // $this->data = array_map(function($v){return(array)$v;},$this->data);
      if ($closure instanceof \Closure) {
         $this->data = $closure( $this->data, $this );
      }
      return $this->data ?: [];
   }
final public function getArray($closure=NULL) {
      $type_fetch = $this->type_fetch;
      $this->type_fetch = 'assoc';
      $this->get();
      $this->type_fetch = $type_fetch;
      // $this->data = array_map(function($v){return(array)$v;},$this->data);
      if ($closure instanceof \Closure) {
         $this->data = $closure( $this->data, $this );
      }
      return $this->data ?: [];
   }
final public function getArray ( $ closure = NULL ) { $ type_fetch = $ this -> type_fetch ; $ this -> type_fetch = 'assoc' ; $ this -> get ( ) ; $ this -> type_fetch = $ type_fetch ; // $this->data = array_map(function($v){return(array)$v;},$this->data); if ( $ closure instanceof \ Closure ) { $ this -> data = $ closure ( $ this -> data , $ this ) ; } return $ this -> data ? : [ ] ; }
Retorna los datos consultados en formato Array
@author Carlos Garcia
@param Closure $closure
@return Array
Retorna los datos consultados en formato Array