- WIP on attributes ; on testing phase

This commit is contained in:
Dave M. 2023-01-26 13:26:43 +00:00
parent b506bae846
commit 94b554ea08
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<?php
namespace Notes\Security\Attribute;
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)]
class Security implements \Notes\Attribute {
public function __construct(
public null|bool $locked = null,
) {}
}

11
src/Attribute/Taxus.php Normal file
View File

@ -0,0 +1,11 @@
<?php
namespace Notes\Security\Attribute;
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)]
class Taxus implements \Notes\Attribute {
public function __construct(
public string $module,
public string $privilege = "",
) {}
}