Lines n/a 0 / 0
Functions and Methods n/a 0 / 0
Classes and Traits n/a 0 / 0
Name Lines Functions and Methods CRAP Classes and Traits
ModelScope n/a 0 / 0 n/a 0 / 0 0 n/a 0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace BlueprintAU\Radiant\Attributes;
6
7/**
8 * Marks a static trait method as a model scope provider.
9 *
10 * The method takes no parameters and returns a list of ScopeCondition
11 * DTOs; every condition is applied to every model query unless stripped
12 * by an opt-out (withoutScopes() / withoutScope(TraitClass) /
13 * withTrashed() for the soft-delete scope). The method name is arbitrary
14 * — two scope-declaring traits on one class never collide.
15 */
16#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
17final class ModelScope
18{
19}