1 | <?php |
||
30 | class UserA |
||
31 | { |
||
32 | /** |
||
33 | * @var string $photoName Photo name |
||
34 | * |
||
35 | * @ORM\Column(type="string", length=255) |
||
36 | * |
||
37 | * @JMS\Expose |
||
38 | * @JMS\SerializedName("photo") |
||
39 | * |
||
40 | * @Fresh\VichSerializableField("photoFile") |
||
41 | */ |
||
42 | private $photoName; |
||
43 | |||
44 | /** |
||
45 | * @var File $photoFile Photo file |
||
46 | * |
||
47 | * @JMS\Exclude |
||
48 | * |
||
49 | * @Vich\UploadableField(mapping="user_photo_mapping", fileNameProperty="photoName") |
||
50 | */ |
||
51 | private $photoFile; |
||
52 | |||
53 | /** |
||
54 | * @var string $coverName Cover name |
||
55 | * |
||
56 | * @ORM\Column(type="string", length=255) |
||
57 | * |
||
58 | * @JMS\Expose |
||
59 | * @JMS\SerializedName("cover") |
||
60 | * |
||
61 | * @Fresh\VichSerializableField("coverFile") |
||
62 | */ |
||
63 | private $coverName; |
||
64 | |||
65 | /** |
||
66 | * @var File $coverFile Cover file |
||
67 | * |
||
68 | * @JMS\Exclude |
||
69 | * |
||
70 | * @Vich\UploadableField(mapping="user_cover_mapping", fileNameProperty="coverName") |
||
71 | */ |
||
72 | private $coverFile; |
||
73 | |||
74 | /** |
||
75 | * @ORM\OneToMany(targetEntity="Fresh\VichUploaderSerializationBundle\Tests\Fixtures\UserPictures", mappedBy="user") |
||
76 | */ |
||
77 | protected $userPictures; |
||
78 | |||
79 | /** |
||
80 | * To string |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | public function __toString() |
||
90 | |||
91 | /** |
||
92 | * Get photo name |
||
93 | * |
||
94 | * @return string Photo name |
||
95 | */ |
||
96 | public function getPhotoName() |
||
100 | |||
101 | /** |
||
102 | * Set photo name |
||
103 | * |
||
104 | * @param string $photoName Photo name |
||
105 | * |
||
106 | * @return $this |
||
107 | */ |
||
108 | public function setPhotoName($photoName) |
||
114 | |||
115 | /** |
||
116 | * Get photo file |
||
117 | * |
||
118 | * @return File Photo file |
||
119 | */ |
||
120 | public function getPhotoFile() |
||
124 | |||
125 | /** |
||
126 | * Set photo file |
||
127 | * |
||
128 | * @param File $photoFile Photo file |
||
129 | * |
||
130 | * @return $this |
||
131 | */ |
||
132 | public function setPhotoFile(File $photoFile) |
||
138 | |||
139 | /** |
||
140 | * Get cover name |
||
141 | * |
||
142 | * @return string Cover name |
||
143 | */ |
||
144 | public function getCoverName() |
||
148 | |||
149 | /** |
||
150 | * Set cover name |
||
151 | * |
||
152 | * @param string $coverName Cover name |
||
153 | * |
||
154 | * @return $this |
||
155 | */ |
||
156 | public function setCoverName($coverName) |
||
162 | |||
163 | /** |
||
164 | * Get cover file |
||
165 | * |
||
166 | * @return File Cover file |
||
167 | */ |
||
168 | public function getCoverFile() |
||
172 | |||
173 | /** |
||
174 | * Set cover file |
||
175 | * |
||
176 | * @param File $coverFile Cover file |
||
177 | * |
||
178 | * @return $this |
||
179 | */ |
||
180 | public function setCoverFile(File $coverFile) |
||
186 | |||
187 | /** |
||
188 | * Add userPictures |
||
189 | * |
||
190 | * @param UserPictures $userPictures |
||
191 | * |
||
192 | * @return $this |
||
193 | */ |
||
194 | public function addUserPictures(UserPictures $userPictures) |
||
200 | |||
201 | /** |
||
202 | * Remove userPictures |
||
203 | * |
||
204 | * @param UserPictures $userPictures |
||
205 | */ |
||
206 | public function removeUserPictures(UserPictures $userPictures) |
||
210 | |||
211 | /** |
||
212 | * Get userPictures |
||
213 | * |
||
214 | * @return \Doctrine\Common\Collections\Collection |
||
215 | */ |
||
216 | public function getUserPictures() |
||
220 | } |
||
221 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.