backend-01

ref: master

app/models/Base.php


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<?php

abstract class Base {
  protected $id;

  public function isPersisted() {
    return !empty($this->id);
  }

  public function getId() {
    return $this->id;
  }

  public function setId($id) {
    $this->id = $id;
  }
}