Skip to content

Commit 6012c03

Browse files
committed
adding signature help
1 parent 7c81c22 commit 6012c03

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

extension/method_parameter.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Hash Tags
4949
* ``goto`` - known string in #<Provider>
5050
* ``complete`` - when support by #<Provider>
5151

52-
supported ``Entity``, ``Service``, ``FormType``, ``Template``, ``Route``, ``Class``, ``TranslationKey`` , ``TranslationDomain``, ``FormOption``
52+
supported ``Entity``, ``Service``, ``FormType``, ``Template``, ``Route``, ``Class``, ``TranslationKey`` , ``TranslationDomain``, ``FormOption``, ``Interface``
5353

5454
.. note::
5555
TranslationKey are filtered on a TranslationDomain parameter, when provided else fallback to ``messages``

extension/signature_type.rst

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.. index::
2+
single: Signature Types
3+
4+
Signature Types
5+
========================
6+
Provide return types for Method calls
7+
8+
Settings
9+
-------------------------
10+
11+
.. image:: signature_type_setting.png
12+
13+
* ``CallTo`` - Class or interface name (prefer use Interface) should FQN and start with ``\``
14+
* ``Method`` - Method name
15+
* ``Index`` - Parameter of Method containing string to resolve (starts with 0)
16+
* ``Provider`` - Provider which can resolve the string
17+
18+
Example
19+
-------------------------
20+
21+
.. code-block:: php
22+
23+
# \PHPUnit_Framework_TestCase:getMock:0:Class
24+
class MyTest extends \PHPUnit_Framework_TestCase {
25+
function testAppConfig() {
26+
$mock = $this->getMock('ClassName');
27+
}
28+
}
29+
30+
* ``type`` - Return type of the Mock
31+
* ``goto`` - You can also use "Method Reference" to get class support
32+
* ``complete`` - use "Method Reference"

extension/signature_type_setting.png

15.4 KB
Loading

index.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ Navigation
2020
languages/twig/index
2121
languages/yaml/index
2222
languages/xml/index
23-
extension/method_parameter
23+
extension/method_parameter
24+
extension/signature_type

0 commit comments

Comments
 (0)