Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathFromReflectionProperty.php
More file actions
Latest commit
21 lines (18 loc) · 691 Bytes
/
Copy pathFromReflectionProperty.php
File metadata and controls
21 lines (18 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
namespaceCrell\AttributeUtils;
/**
* Marks a property-targeting attribute as wanting reflection information.
*
* If a property-targeting attribute implements this interface, then after it
* is instantiated the reflection object for the class will be passed to this
* method. The attribute may then extract whatever information it desires
* and save it to the object however it likes.
*
* Note that the attribute MUST NOT save the reflection object itself. That
* would make the attribute object unserializable, and thus uncacheable.
*/
interface FromReflectionProperty
{
publicfunctionfromReflection(\ReflectionProperty$subject): void;
}