| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | class FileProcessingAspect implements AspectInterface |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var bool |
||
| 32 | */ |
||
| 33 | private $deferProcessing; |
||
| 34 | |||
| 35 | public function __construct(bool $deferProcessing = true) |
||
| 36 | { |
||
| 37 | $this->deferProcessing = $deferProcessing; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Fetch the values |
||
| 42 | * |
||
| 43 | * @param string $name |
||
| 44 | * @return bool |
||
| 45 | * @throws AspectPropertyNotFoundException |
||
| 46 | */ |
||
| 47 | public function get(string $name) |
||
| 48 | { |
||
| 49 | if ($name === 'deferProcessing') { |
||
| 50 | return $this->deferProcessing; |
||
| 51 | } |
||
| 52 | throw new AspectPropertyNotFoundException('Property "' . $name . '" not found in Aspect "' . __CLASS__ . '".', 1599164743); |
||
| 53 | } |
||
| 54 | |||
| 55 | public function isProcessingDeferred(): bool |
||
| 58 | } |
||
| 59 | } |
||
| 60 |