feat: Add City entity methods and migration for title field
- Created a new JSON file for the City entity's AST representation, detailing its methods and properties. - Added a migration to alter the cities table by adding a nullable title column.
This commit is contained in:
@@ -27,6 +27,9 @@ class City
|
||||
#[ORM\Column(name: 'site_name', type: 'string', length: 255, nullable: true)]
|
||||
private ?string $siteName = null;
|
||||
|
||||
#[ORM\Column(type: 'string', length: 255, nullable: true)]
|
||||
private ?string $title = null;
|
||||
|
||||
#[ORM\Column(type: 'smallint')]
|
||||
private int $status = 1;
|
||||
|
||||
@@ -78,6 +81,7 @@ class City
|
||||
public function getUuid(): string { return $this->uuid; }
|
||||
public function getName(): string { return $this->name; }
|
||||
public function getSiteName(): ?string { return $this->siteName; }
|
||||
public function getTitle(): ?string { return $this->title; }
|
||||
public function getStatus(): int { return $this->status; }
|
||||
public function getWeight(): int { return $this->weight; }
|
||||
public function getProvince(): ?Province { return $this->province; }
|
||||
@@ -94,6 +98,7 @@ class City
|
||||
|
||||
public function setName(string $v): self { $this->name = $v; return $this; }
|
||||
public function setSiteName(?string $v): self { $this->siteName = $v; return $this; }
|
||||
public function setTitle(?string $v): self { $this->title = $v; return $this; }
|
||||
public function setStatus(int $v): self { $this->status = $v; return $this; }
|
||||
public function setWeight(int $v): self { $this->weight = $v; return $this; }
|
||||
public function setProvince(?Province $v): self { $this->province = $v; return $this; }
|
||||
@@ -115,6 +120,7 @@ class City
|
||||
'uuid' => $this->uuid,
|
||||
'name' => $this->name,
|
||||
'site_name' => $this->siteName,
|
||||
'title' => $this->title,
|
||||
'status' => $this->status,
|
||||
'weight' => $this->weight,
|
||||
'province_id' => $this->province?->getId(),
|
||||
|
||||
Reference in New Issue
Block a user