pub struct ClassStorage {Show 20 fields
pub fqcn: Arc<str>,
pub short_name: Arc<str>,
pub parent: Option<Arc<str>>,
pub interfaces: Vec<Arc<str>>,
pub traits: Vec<Arc<str>>,
pub own_methods: IndexMap<Arc<str>, Arc<MethodStorage>>,
pub own_properties: IndexMap<Arc<str>, PropertyStorage>,
pub own_constants: IndexMap<Arc<str>, ConstantStorage>,
pub mixins: Vec<Arc<str>>,
pub template_params: Vec<TemplateParam>,
pub extends_type_args: Vec<Union>,
pub implements_type_args: Vec<(Arc<str>, Vec<Union>)>,
pub is_abstract: bool,
pub is_final: bool,
pub is_readonly: bool,
pub deprecated: Option<Arc<str>>,
pub is_internal: bool,
pub location: Option<Location>,
pub type_aliases: HashMap<Arc<str>, Union>,
pub pending_import_types: Vec<(Arc<str>, Arc<str>, Arc<str>)>,
}Fields§
§fqcn: Arc<str>§short_name: Arc<str>§parent: Option<Arc<str>>§interfaces: Vec<Arc<str>>§traits: Vec<Arc<str>>§own_methods: IndexMap<Arc<str>, Arc<MethodStorage>>§own_properties: IndexMap<Arc<str>, PropertyStorage>§own_constants: IndexMap<Arc<str>, ConstantStorage>§mixins: Vec<Arc<str>>§template_params: Vec<TemplateParam>§extends_type_args: Vec<Union>Type arguments from @extends ParentClass<T1, T2> — maps parent’s template params to concrete types.
implements_type_args: Vec<(Arc<str>, Vec<Union>)>Type arguments from @implements Interface<T1, T2>.
is_abstract: bool§is_final: bool§is_readonly: bool§deprecated: Option<Arc<str>>§is_internal: bool§location: Option<Location>§type_aliases: HashMap<Arc<str>, Union>Type aliases declared on this class via @psalm-type / @phpstan-type.
pending_import_types: Vec<(Arc<str>, Arc<str>, Arc<str>)>Raw import-type declarations ((local_name, original_name, from_class)) — resolved during finalization.
Implementations§
Source§impl ClassStorage
impl ClassStorage
pub fn get_method(&self, name: &str) -> Option<&MethodStorage>
pub fn get_property(&self, name: &str) -> Option<&PropertyStorage>
Trait Implementations§
Source§impl Clone for ClassStorage
impl Clone for ClassStorage
Source§fn clone(&self) -> ClassStorage
fn clone(&self) -> ClassStorage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClassStorage
impl Debug for ClassStorage
Source§impl<'de> Deserialize<'de> for ClassStorage
impl<'de> Deserialize<'de> for ClassStorage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClassStorage
impl PartialEq for ClassStorage
Source§fn eq(&self, other: &ClassStorage) -> bool
fn eq(&self, other: &ClassStorage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClassStorage
impl Serialize for ClassStorage
impl StructuralPartialEq for ClassStorage
Auto Trait Implementations§
impl Freeze for ClassStorage
impl RefUnwindSafe for ClassStorage
impl Send for ClassStorage
impl Sync for ClassStorage
impl Unpin for ClassStorage
impl UnsafeUnpin for ClassStorage
impl UnwindSafe for ClassStorage
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