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