Debian Codegraph @

vendor/chillerlan/php-settings-container/src/Attributes/ThrowOnInvalidProperty.php

raw
1 <?php
2 /**
3 * Class ThrowOnInvalidProperty
4 *
5 * @created 31/10/2025
6 * @author smiley <[email protected]>
7 * @copyright 2025 smiley
8 * @license MIT
9 */
10 declare(strict_types=1);
11
12 namespace chillerlan\Settings\Attributes;
13
14 use Attribute;
15
16 /**
17 * Tells the magic get/set methods whether to throw when a properety is inaccessible
18 *
19 * @see \chillerlan\Settings\SettingsContainerAbstract::throwOnInvalidProperty()
20 */
21 #[Attribute(Attribute::TARGET_CLASS)]
22 final class ThrowOnInvalidProperty{
23
24 public function __construct(
25 public readonly bool $throwOnInvalid,
26 ){}
27
28 }