use the `:method:` role of fabien's sphinx extensions:

````rst
:method:`Symfony\\Component\\Process\\Process::setIdleTimeout`
````