Пример #1
0
 public function factory($arrayfetch)
 {
     $arraytoret = array();
     if ($arrayfetch) {
         foreach ($arrayfetch as $fetch) {
             $newObject = new Nota($this->driver);
             $newObject->fill($fetch);
             array_push($arraytoret, $newObject);
         }
     }
     return $arraytoret;
 }