Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Auditable
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
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        public bool $readEvents = false,
15        public bool $readAllEvents = false,
16    ) {
17    }
18}