Skip to content

Commit 94e18e3

Browse files
author
Stanislav Idolov
authored
2 parents 3b59ffc + 61b71df commit 94e18e3

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

lib/internal/Magento/Framework/Interception/Test/Unit/Code/Generator/_files/TInterceptor.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,32 @@ class Interceptor extends \Magento\Framework\Interception\Code\Generator\TSample
1212
$this->___init();
1313
}
1414

15+
/**
16+
* {@inheritdoc}
17+
*/
18+
public function returnVoid() : void
19+
{
20+
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'returnVoid');
21+
if (!$pluginInfo) {
22+
parent::returnVoid();
23+
} else {
24+
$this->___callPlugins('returnVoid', func_get_args(), $pluginInfo);
25+
}
26+
}
27+
28+
/**
29+
* {@inheritdoc}
30+
*/
31+
public function getNullableValue() : ?string
32+
{
33+
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getNullableValue');
34+
if (!$pluginInfo) {
35+
return parent::getNullableValue();
36+
} else {
37+
return $this->___callPlugins('getNullableValue', func_get_args(), $pluginInfo);
38+
}
39+
}
40+
1541
/**
1642
* {@inheritdoc}
1743
*/

lib/internal/Magento/Framework/Interception/Test/Unit/Code/Generator/_files/TSample.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ class TSample
1010
private $value;
1111
private $variadicValue;
1212

13+
public function returnVoid() : void
14+
{
15+
// Nothing to do here
16+
}
17+
18+
public function getNullableValue() : ?string
19+
{
20+
return null;
21+
}
22+
1323
public function getValue() : string
1424
{
1525
return $this->value;

0 commit comments

Comments
 (0)