Let's say I have the following classes:
class Bar{
public int $id;
}
class Boo{
public string $name;
}
class Foo{
#[ObjectAttr]
public Bar $barObject;
#[ObjectAttr]
public Boo $booObject;
}
#[\Attribute]
class ObjectAttr{
__construct(){
// I need to get the type of property which I used `ObjectAttr` annotation on like:
// $className = $this->annotatedTarget()->getClassName() or something like this which returns `Bar::class` or `Boo::class`
}
}
I need to get type of the field I used my annotation on.
Is there any convenient way to do this?