'integer', 'priority' => 'integer']; } public function village(): BelongsTo { return $this->belongsTo(Village::class); } public function state(): BuildingState { return new BuildingState($this->id, $this->type, $this->level, $this->priority); } }