Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
52 | public function aroundFileGetContents(FunctionInvocation $invocation) |
||
53 | { |
||
54 | echo 'Calling Around Interceptor for ', |
||
55 | $invocation, |
||
56 | ' with arguments: ', |
||
57 | json_encode($invocation->getArguments()), |
||
58 | PHP_EOL; |
||
59 | |||
60 | // return $invocation->proceed(); // Do not call original file_get_contents() |
||
61 | return 'Hello!'; // Override return value for function |
||
62 | } |
||
63 | } |
||
64 |