- WIP on attributes ; on testing phase
This commit is contained in:
parent
b506bae846
commit
94b554ea08
|
@ -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,
|
||||
) {}
|
||||
}
|
|
@ -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 = "",
|
||||
) {}
|
||||
}
|
Loading…
Reference in New Issue