-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
Hello!
Don't know if I overlooked a thing: I have a value object that I want to expose via type. Value object is rather simple:
class Value {
public function __construct() {
public readonly int $something;
}
}
And my type:
#[SourceField('something')]
class ValueType {
}
And then I get: There is an issue with a @SourceField annotation in class …: Could not find a getter or a isser for field
.
Is this an intentional thing or missing feature? From what I checked against the codebase, there's no support for reading properties directly. But may be I am holding it wrong.
It would be nice not to have getters in type just to work around it.
Metadata
Metadata
Assignees
Labels
No labels