<?php

namespace app\Core;
use ArrayAccess;

  abstract class AbstractModel implements ArrayAccess
  {

      public function offsetExists ($offset) {
        return isset($this->$offset);
      }

      public function offsetGet ($offset) {
        return $this->$offset;
      }

      public function offsetSet ($offset, $value) {
        $this->$offset = $value;
      }

      public function offsetUnset ($offset) {
        unset ($this->$offset);
      }
  }

 ?>
