pub struct PHPClass {
pub name: String,
pub parent: Option<String>,
pub interfaces: Vec<String>,
pub traits: Vec<String>,
pub is_abstract: bool,
pub is_final: bool,
pub is_readonly: bool,
pub properties: Vec<PHPProperty>,
pub methods: Vec<PHPFunction>,
pub constants: Vec<(String, PHPType, String)>,
}Expand description
PHP class declaration.
Fields§
§name: StringClass name
parent: Option<String>Optional parent class
interfaces: Vec<String>Implemented interfaces
traits: Vec<String>Used traits
is_abstract: boolWhether this is abstract
is_final: boolWhether this is final
is_readonly: boolWhether this is readonly (PHP 8.2+)
properties: Vec<PHPProperty>Properties
methods: Vec<PHPFunction>Methods
constants: Vec<(String, PHPType, String)>Class constants
Implementations§
Trait Implementations§
impl StructuralPartialEq for PHPClass
Auto Trait Implementations§
impl Freeze for PHPClass
impl RefUnwindSafe for PHPClass
impl Send for PHPClass
impl Sync for PHPClass
impl Unpin for PHPClass
impl UnsafeUnpin for PHPClass
impl UnwindSafe for PHPClass
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