I think uploading packs is more or less working. I nutted out a few bugs in a lot...
[rock.divinelegy.git] / Domain / Entities / AbstractEntity.php
1 <?php
2
3 namespace Domain\Entities;
4
5 use Exception;
6 use Domain\Entities\IDivineEntity;
7
8 abstract class AbstractEntity implements IDivineEntity
9 {
10 protected $id;
11
12 public function setId($id) {
13 if(isset($this->id)) {
14 throw new Exception('ID already set.');
15 }
16
17 $this->id = $id;
18 }
19
20 public function getId() {
21 return $this->id;
22 }
23 }