Beispiel #1
0
 public function stone()
 {
     $stone_id = $this->stone;
     if (empty($stone_id)) {
         $stone = Stone::create();
         $stone_id = $stone->id;
         $this->edit('stone', $stone_id);
         $this->stone = $stone_id;
         return $stone;
     }
     return new Stone($this->stone);
 }