1 | <?php |
||
19 | class ArticleTranslation |
||
20 | { |
||
21 | use Translation; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | * |
||
26 | * @Assert\NotBlank() |
||
27 | * @ORM\Column(name="name", type="string", length=255) |
||
28 | * @Serializer\Groups({"search"}) |
||
29 | * @VIC\BusinessProperty({"textable", "businessParameter", "seoable"}) |
||
30 | */ |
||
31 | protected $name; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | * |
||
36 | * @Gedmo\Slug(handlers={ |
||
37 | * @Gedmo\SlugHandler(class="Victoire\Bundle\BusinessEntityBundle\Handler\TwigSlugHandler" |
||
38 | * )},fields={"name"}, updatable=false, unique=false) |
||
39 | * @ORM\Column(name="slug", type="string", length=255) |
||
40 | * @VIC\BusinessProperty("businessParameter") |
||
41 | */ |
||
42 | protected $slug; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | * |
||
47 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\MediaBundle\Entity\Media") |
||
48 | * @ORM\JoinColumn(name="image_id", referencedColumnName="id", onDelete="CASCADE") |
||
49 | * @VIC\BusinessProperty("imageable") |
||
50 | */ |
||
51 | private $image; |
||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | * |
||
56 | * @ORM\Column(name="description", type="text", nullable=true) |
||
57 | * @VIC\BusinessProperty({"textable", "seoable"}) |
||
58 | */ |
||
59 | private $description; |
||
60 | |||
61 | /** |
||
62 | * Get name. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getName() |
||
70 | |||
71 | /** |
||
72 | * Set name. |
||
73 | * |
||
74 | * @param string $name |
||
75 | * |
||
76 | * @return View |
||
77 | */ |
||
78 | public function setName($name) |
||
84 | |||
85 | /** |
||
86 | * Set slug. |
||
87 | * |
||
88 | * @param string $slug |
||
89 | * |
||
90 | * @return View |
||
91 | */ |
||
92 | public function setSlug($slug) |
||
98 | |||
99 | /** |
||
100 | * Get slug. |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getSlug() |
||
108 | |||
109 | /** |
||
110 | * Get description. |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getDescription() |
||
118 | |||
119 | /** |
||
120 | * Set category. |
||
121 | * |
||
122 | * @param string $category |
||
|
|||
123 | * |
||
124 | * @return Article |
||
125 | */ |
||
126 | public function setDescription($description) |
||
132 | |||
133 | /** |
||
134 | * Set image. |
||
135 | * |
||
136 | * @param Media $image |
||
137 | * |
||
138 | * @return ArticleTranslation |
||
139 | */ |
||
140 | public function setImage(Media $image = null) |
||
146 | |||
147 | /** |
||
148 | * Get image. |
||
149 | * |
||
150 | * @return string |
||
151 | */ |
||
152 | public function getImage() |
||
156 | } |
||
157 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.