mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-29 21:08:13 +02:00
Optimized ORM-Structure
This commit is contained in:
24
application/src/Entity/Attribut/PasswordAttribut.php
Normal file
24
application/src/Entity/Attribut/PasswordAttribut.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
trait PasswordAttribut {
|
||||
/**
|
||||
* @ORM\Column(type="string", length=64)
|
||||
*/
|
||||
protected $password;
|
||||
|
||||
public function getPassword():string
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
public function setPassword(string $password):void{
|
||||
$this->password = $password;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user