pub struct ClassPropertyProviderEvent<'a> {
pub fqcn: &'a str,
pub property_name: &'a str,
pub array_property_defaults: &'a [ArrayPropertyDefault],
pub file: &'a str,
}Expand description
Counterpart of Psalm’s PropertiesProviderInterface: supply the type of a
property that is not declared on the class (nor reachable via @property),
e.g. an Eloquent attribute synthesized from $casts. Dispatched when a
property access misses on a class whose own FQCN or an ancestor is listed
in MirPlugin::class_property_classes.
Fields§
§fqcn: &'a strConcrete receiver class the property is resolved on (no leading \).
property_name: &'a strProperty name being resolved (no leading $).
array_property_defaults: &'a [ArrayPropertyDefault]Array-literal property defaults declared on fqcn or an ancestor,
nearest-class-wins.
file: &'a strAuto Trait Implementations§
impl<'a> Freeze for ClassPropertyProviderEvent<'a>
impl<'a> RefUnwindSafe for ClassPropertyProviderEvent<'a>
impl<'a> Send for ClassPropertyProviderEvent<'a>
impl<'a> Sync for ClassPropertyProviderEvent<'a>
impl<'a> Unpin for ClassPropertyProviderEvent<'a>
impl<'a> UnsafeUnpin for ClassPropertyProviderEvent<'a>
impl<'a> UnwindSafe for ClassPropertyProviderEvent<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more