-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06fbe19
commit 90f4098
Showing
3 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace App\Entity; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
/** | ||
* Admin | ||
* | ||
* @ORM\Table(name="admins") | ||
* @ORM\Entity() | ||
*/ | ||
class Admin | ||
{ | ||
/** | ||
* @var int | ||
* | ||
* @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned": true}) | ||
* @ORM\Id() | ||
* @ORM\GeneratedValue(strategy="IDENTITY") | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @ORM\Column(name="login", type="string", length=255, nullable=true) | ||
*/ | ||
private $login; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @ORM\Column(name="password", type="string", length=255, nullable=true) | ||
*/ | ||
private $password; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @ORM\Column(name="about", type="string", length=255, nullable=true) | ||
*/ | ||
private $about; | ||
|
||
/** | ||
* @var bool | ||
* | ||
* @ORM\Column(name="status", type="boolean", nullable=false, options={"default" : "1"}) | ||
*/ | ||
private $status = true; | ||
|
||
/** | ||
* Get id | ||
* | ||
* @return int | ||
*/ | ||
public function getId(): int | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* Set login | ||
* | ||
* @param string $login | ||
* | ||
* @return Admin | ||
*/ | ||
public function setLogin(string $login): Admin | ||
{ | ||
$this->login = $login; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Get login | ||
* | ||
* @return string | ||
*/ | ||
public function getLogin(): string | ||
{ | ||
return $this->login; | ||
} | ||
|
||
/** | ||
* Set password | ||
* | ||
* @param string $password | ||
* | ||
* @return Admin | ||
*/ | ||
public function setPassword(string $password): Admin | ||
{ | ||
$this->password = $password; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Get password | ||
* | ||
* @return string | ||
*/ | ||
public function getPassword(): string | ||
{ | ||
return $this->password; | ||
} | ||
|
||
/** | ||
* Set status | ||
* | ||
* @param bool $status | ||
* | ||
* @return Admin | ||
*/ | ||
public function setStatus(bool $status): Admin | ||
{ | ||
$this->status = $status; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Get status | ||
* | ||
* @return bool | ||
*/ | ||
public function getStatus(): bool | ||
{ | ||
return $this->status; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters