This commit is contained in:
icefox 2025-12-22 17:54:16 -03:00
commit a5ce423afe
No known key found for this signature in database
30 changed files with 1807 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<?php
namespace Tests\Aspects;
use Attribute;
#[Attribute(Attribute::TARGET_METHOD)]
class BasicAspect
{
public ?object $object = null;
public function before(object|string $target, mixed ...$args): void
{
$this->object = end($args);
$this->object->before = true;
}
public function after(object|string $target, mixed $return): mixed
{
$this->object->after = true;
return $return;
}
}