Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
Auditable
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2namespace Apie\Core\Attributes;
3
4use Attribute;
5
6/**
7 * Add this attribute to tell Apie to audit this entity.
8 */
9#[Attribute(Attribute::TARGET_CLASS)]
10final class Auditable
11{
12    public function __construct(
13        public RuntimeCheck $permission = new RuntimeCheck()
14    ) {
15    }
16}