| Total Complexity | 3 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class User extends AbstractModel implements \Ecodev\Felix\Model\User |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | * |
||
| 20 | * @ORM\Column(name="custom_column_name", type="string", length=50, options={"default" = ""}) |
||
| 21 | */ |
||
| 22 | private $name = ''; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var null|string |
||
| 26 | * |
||
| 27 | * @ORM\Column(type="string", length=50, nullable=true) |
||
| 28 | */ |
||
| 29 | private $email; |
||
|
|
|||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | * |
||
| 34 | * @ORM\Column(name="password", type="string", length=255) |
||
| 35 | * @Api\Exclude |
||
| 36 | */ |
||
| 37 | private $password; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var \Doctrine\Common\Collections\Collection |
||
| 41 | * |
||
| 42 | * @ORM\OneToMany(targetEntity="EcodevTests\Felix\Blog\Model\Post", mappedBy="user") |
||
| 43 | */ |
||
| 44 | private $posts; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getName(): string |
||
| 50 | { |
||
| 51 | return $this->name; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $name |
||
| 56 | */ |
||
| 57 | public function setName(string $name): void |
||
| 60 | } |
||
| 61 | |||
| 62 | public function getRole(): string |
||
| 67 |