.
This commit is contained in:
commit
a5ce423afe
30 changed files with 1807 additions and 0 deletions
19
src/Aspect.php
Normal file
19
src/Aspect.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace IceFox\Aspect;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_METHOD)]
|
||||
class Aspect
|
||||
{
|
||||
public function before(mixed ...$args): void
|
||||
{
|
||||
echo "before\n";
|
||||
}
|
||||
|
||||
public function after(mixed $result): void
|
||||
{
|
||||
echo "after\n";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue