init symfony framework #14

This commit is contained in:
ghost 2023-10-02 16:13:55 +03:00
parent 3c233fcfad
commit 380377b27c
114 changed files with 11525 additions and 10998 deletions

0
src/Entity/.gitignore vendored Normal file
View file

27
src/Entity/Page.php Normal file
View file

@ -0,0 +1,27 @@
<?php
namespace App\Entity;
use App\Repository\PageRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageRepository::class)]
class Page
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
public function getId(): ?int
{
return $this->id;
}
public function setId(string $id): static
{
$this->id = $id;
return $this;
}
}

147
src/Entity/User.php Normal file
View file

@ -0,0 +1,147 @@
<?php
namespace App\Entity;
use App\Repository\UserRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: UserRepository::class)]
class User
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $address = null;
#[ORM\Column]
private ?int $added = null;
#[ORM\Column]
private ?int $updated = null;
#[ORM\Column]
private ?int $visited = null;
#[ORM\Column]
private ?bool $public = null;
#[ORM\Column]
private ?bool $moderator = null;
#[ORM\Column]
private ?bool $approved = null;
#[ORM\Column]
private ?bool $status = null;
public function getId(): ?int
{
return $this->id;
}
public function setId(string $id): static
{
$this->id = $id;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): static
{
$this->address = $address;
return $this;
}
public function getAdded(): ?int
{
return $this->added;
}
public function setAdded(int $added): static
{
$this->added = $added;
return $this;
}
public function getUpdated(): ?int
{
return $this->updated;
}
public function setUpdated(int $updated): static
{
$this->updated = $updated;
return $this;
}
public function getVisited(): ?int
{
return $this->visited;
}
public function setVisited(int $visited): static
{
$this->visited = $visited;
return $this;
}
public function isPublic(): ?bool
{
return $this->public;
}
public function setPublic(bool $public): static
{
$this->public = $public;
return $this;
}
public function isModerator(): ?bool
{
return $this->moderator;
}
public function setModerator(bool $moderator): static
{
$this->moderator = $moderator;
return $this;
}
public function isApproved(): ?bool
{
return $this->approved;
}
public function setApproved(bool $approved): static
{
$this->approved = $approved;
return $this;
}
public function isStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): static
{
$this->status = $status;
return $this;
}
}