1 | <?php |
||
13 | class UserProfileContacts |
||
14 | { |
||
15 | /** |
||
16 | * @ORM\Id() |
||
17 | * @ORM\GeneratedValue() |
||
18 | * @ORM\Column(type="integer") |
||
19 | */ |
||
20 | private $id; |
||
21 | |||
22 | /** |
||
23 | * @ORM\ManyToOne(targetEntity="App\Users\Entity\UserProfile", inversedBy="contacts") |
||
24 | * @ORM\JoinColumn(nullable=false) |
||
25 | */ |
||
26 | private $profile; |
||
27 | |||
28 | /** |
||
29 | * @ORM\Column(type="string", length=30) |
||
30 | */ |
||
31 | private $provider; |
||
32 | |||
33 | /** |
||
34 | * @ORM\Column(type="string", length=255) |
||
35 | */ |
||
36 | private $url; |
||
37 | |||
38 | 4 | public function __construct(UserProfile $userProfile, string $provider, string $url) |
|
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | 1 | public function getId() |
|
52 | |||
53 | /** |
||
54 | * @return UserProfile |
||
55 | */ |
||
56 | 1 | public function getProfile(): UserProfile |
|
60 | |||
61 | 1 | public function getProvider(): string |
|
65 | |||
66 | 1 | public function getUrl(): string |
|
70 | } |
||
71 |