1 | <?php |
||
31 | class UserB |
||
32 | { |
||
33 | /** |
||
34 | * @var string |
||
35 | * |
||
36 | * @ORM\Column(type="string", length=255) |
||
37 | * |
||
38 | * @JMS\Expose |
||
39 | * @JMS\SerializedName("photo") |
||
40 | * |
||
41 | * @Fresh\VichSerializableField("photoFile") |
||
42 | */ |
||
43 | private $photoName; |
||
44 | |||
45 | /** |
||
46 | * @var File |
||
47 | * |
||
48 | * @JMS\Exclude |
||
49 | * |
||
50 | * @Vich\UploadableField(mapping="user_photo_mapping", fileNameProperty="photoName") |
||
51 | */ |
||
52 | private $photoFile; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | * |
||
57 | * @ORM\Column(type="string", length=255) |
||
58 | * |
||
59 | * @JMS\Expose |
||
60 | * @JMS\SerializedName("cover") |
||
61 | * |
||
62 | * @Fresh\VichSerializableField("coverFile", includeHost=false) |
||
63 | */ |
||
64 | private $coverName; |
||
65 | |||
66 | /** |
||
67 | * @var File |
||
68 | * |
||
69 | * @JMS\Exclude |
||
70 | * |
||
71 | * @Vich\UploadableField(mapping="user_cover_mapping", fileNameProperty="coverName") |
||
72 | */ |
||
73 | private $coverFile; |
||
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function __toString() |
||
79 | { |
||
80 | return 'New User'; |
||
81 | } |
||
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | public function getPhotoName() |
||
87 | { |
||
88 | return $this->photoName; |
||
89 | } |
||
90 | |||
91 | /** |
||
92 | * @param string $photoName |
||
93 | * |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function setPhotoName($photoName) |
||
97 | { |
||
98 | $this->photoName = $photoName; |
||
99 | |||
100 | return $this; |
||
101 | } |
||
102 | |||
103 | /** |
||
104 | * @return File |
||
105 | */ |
||
106 | public function getPhotoFile() |
||
107 | { |
||
108 | return $this->photoFile; |
||
109 | } |
||
110 | |||
111 | /** |
||
112 | * @param File $photoFile |
||
113 | * |
||
114 | * @return $this |
||
115 | */ |
||
116 | public function setPhotoFile(File $photoFile) |
||
117 | { |
||
118 | $this->photoFile = $photoFile; |
||
119 | |||
120 | return $this; |
||
121 | } |
||
122 | |||
123 | /** |
||
124 | * @return string |
||
125 | */ |
||
126 | public function getCoverName() |
||
127 | { |
||
128 | return $this->coverName; |
||
129 | } |
||
130 | |||
131 | /** |
||
132 | * @param string $coverName |
||
133 | * |
||
134 | * @return $this |
||
135 | */ |
||
136 | public function setCoverName($coverName) |
||
137 | { |
||
138 | $this->coverName = $coverName; |
||
139 | |||
140 | return $this; |
||
141 | } |
||
142 | |||
143 | /** |
||
144 | * @return File |
||
145 | */ |
||
146 | public function getCoverFile() |
||
147 | { |
||
148 | return $this->coverFile; |
||
149 | } |
||
150 | |||
151 | /** |
||
152 | * @param File $coverFile |
||
153 | * |
||
154 | * @return $this |
||
155 | */ |
||
156 | public function setCoverFile(File $coverFile) |
||
157 | { |
||
158 | $this->coverFile = $coverFile; |
||
159 | |||
160 | return $this; |
||
161 | } |
||
162 | } |
||
163 |