1: <?php
2:
3: declare(strict_types=1);
4:
5: namespace Atk4\Core;
6:
7: /**
8: * Special exception for HookTrait::breakHook() method.
9: */
10: class HookBreaker extends Exception
11: {
12: /** @var mixed */
13: protected $returnValue;
14:
15: /**
16: * @param mixed $returnValue
17: */
18: public function __construct($returnValue)
19: {
20: parent::__construct();
21:
22: $this->returnValue = $returnValue;
23: }
24:
25: /**
26: * @return mixed
27: */
28: public function getReturnValue()
29: {
30: return $this->returnValue;
31: }
32: }
33: