| Total Complexity | 6 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | class Profile implements ProfileInterface |
||
| 20 | { |
||
| 21 | protected string $id; |
||
| 22 | protected string $nama; |
||
| 23 | protected ?UserInterface $user; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $nama |
||
| 27 | * @param UserInterface $user |
||
| 28 | */ |
||
| 29 | public function __construct(string $nama, UserInterface $user = null) |
||
| 30 | { |
||
| 31 | $this->nama = $nama; |
||
| 32 | $this->user = $user; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getId(): string |
||
| 39 | { |
||
| 40 | return $this->id; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getNama(): string |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $nama |
||
| 53 | */ |
||
| 54 | public function setNama(string $nama): void |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return UserInterface|null |
||
| 61 | */ |
||
| 62 | public function getUser(): ?UserInterface |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param UserInterface|null $user |
||
| 69 | */ |
||
| 70 | public function setUser(?UserInterface $user): void |
||
| 75 |