1 | <?php |
||
14 | class FunctionCallPattern implements PatternInterface { |
||
15 | |||
16 | const OUTPUT_FULL = 1; |
||
17 | |||
18 | const OUTPUT_ARGUMENTS = 2; |
||
19 | |||
20 | /** |
||
21 | * @var Query|null |
||
22 | */ |
||
23 | private $nameQuery; |
||
24 | |||
25 | /** |
||
26 | * @var ParametersPattern |
||
27 | */ |
||
28 | private $parametersPattern; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | private $outputType = self::OUTPUT_FULL; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * @return $this |
||
38 | */ |
||
39 | 3 | public function outputFull() : self { |
|
43 | |||
44 | |||
45 | /** |
||
46 | * @return $this |
||
47 | */ |
||
48 | 3 | public function outputArguments() : self { |
|
52 | |||
53 | |||
54 | /** |
||
55 | * @param Query $query |
||
56 | * @return $this |
||
57 | */ |
||
58 | 3 | public function withName(Query $query) : self { |
|
62 | |||
63 | |||
64 | /** |
||
65 | * @param ParametersPattern $pattern |
||
66 | * @return $this |
||
67 | */ |
||
68 | 3 | public function withParameters(ParametersPattern $pattern) : self { |
|
72 | |||
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | 12 | public function __invoke(QuerySequence $querySequence) { |
|
119 | |||
120 | } |