Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] |
||
22 | class Before extends AbstractAttribute |
||
23 | { |
||
24 | /** |
||
25 | * @param string $call The method to call |
||
26 | * @param array $with The call parameters |
||
27 | */ |
||
28 | public function __construct(protected string $call, protected array $with = []) |
||
29 | {} |
||
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | public function saveValue(Metadata $xMetadata, string $sMethod = '*'): void |
||
37 | } |
||
38 | } |
||
39 |