Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ValidPlugin.php
Go to the documentation of this file.
1 <?php
8 
9 use \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments;
10 
12 {
20  public function afterGetItem(
21  ItemWithArguments $subject,
22  $result
23  ) {
24  return $result . '!';
25  }
26 
34  public function beforeGetItem(
35  ItemWithArguments $subject,
36  $name
37  ) {
38  return '|' . $name;
39  }
40 
49  public function aroundGetItem(
50  ItemWithArguments $subject,
51  \Closure $proceed,
52  $name
53  ) {
54  $proceed('&' . $name . '&');
55  }
56 }
if(!isset($_GET['name'])) $name
Definition: log.php:14