Skip to content

Commit e9454aa

Browse files
committed
fix code example for property info
1 parent 585683c commit e9454aa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/property_info.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,27 +229,30 @@ This is based on how :doc:`PropertyAccess </components/property_access>` works,
229229
so it even looks for adder/remover methods and can transform between singular
230230
and plural property names::
231231

232+
use Acme\Entity\Analysis;
233+
use Acme\Entity\Foot;
234+
232235
class SomeClass
233236
{
234237
private $analyses;
235238
private $feet;
236239

237-
public function addAnalyse(Dummy $analyse)
240+
public function addAnalysis(Analysis $analysis)
238241
{
239242
// ...
240243
}
241244

242-
public function removeAnalyse(Dummy $analyse)
245+
public function removeAnalysis(Analysis $analysis)
243246
{
244247
// ...
245248
}
246249

247-
public function addFoot(Dummy $foot)
250+
public function addFoot(Foot $foot)
248251
{
249252
// ...
250253
}
251254

252-
public function removeFoot(Dummy $foot)
255+
public function removeFoot(Foot $foot)
253256
{
254257
// ...
255258
}

0 commit comments

Comments
 (0)