pub struct SalesSummary { /* private fields */ }Implementations§
Source§impl SalesSummary
impl SalesSummary
pub fn get_total_revenue(&self) -> f64
pub fn get_total_orders(&self) -> i64
pub fn get_average_order_value(&self) -> f64
pub fn get_total_items_sold(&self) -> i64
Trait Implementations§
Source§impl Clone for SalesSummary
impl Clone for SalesSummary
Source§fn clone(&self) -> SalesSummary
fn clone(&self) -> SalesSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> FromZendObject<'a> for &'a SalesSummary
impl<'a> FromZendObject<'a> for &'a SalesSummary
Source§fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
Extracts
Self from the source ZendObject.Source§impl<'a> FromZendObjectMut<'a> for &'a mut SalesSummary
impl<'a> FromZendObjectMut<'a> for &'a mut SalesSummary
Source§fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
Extracts
Self from the source ZendObject.Source§impl<'a> FromZval<'a> for &'a SalesSummary
impl<'a> FromZval<'a> for &'a SalesSummary
Source§impl<'a> FromZvalMut<'a> for &'a mut SalesSummary
impl<'a> FromZvalMut<'a> for &'a mut SalesSummary
Source§impl IntoZendObject for SalesSummary
impl IntoZendObject for SalesSummary
Source§fn into_zend_object(self) -> Result<ZBox<ZendObject>>
fn into_zend_object(self) -> Result<ZBox<ZendObject>>
Attempts to convert
self into a Zend object.Source§impl IntoZval for SalesSummary
impl IntoZval for SalesSummary
Source§impl RegisteredClass for SalesSummary
impl RegisteredClass for SalesSummary
Source§const CLASS_NAME: &'static str = "StateSet\\SalesSummary"
const CLASS_NAME: &'static str = "StateSet\\SalesSummary"
PHP class name of the registered class.
Source§const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None
const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None
Optional class constructor.
Source§fn get_metadata() -> &'static ClassMetadata<Self>
fn get_metadata() -> &'static ClassMetadata<Self>
Returns a reference to the class metadata, which stores the class entry
and handlers. Read more
Auto Trait Implementations§
impl Freeze for SalesSummary
impl RefUnwindSafe for SalesSummary
impl Send for SalesSummary
impl Sync for SalesSummary
impl Unpin for SalesSummary
impl UnsafeUnpin for SalesSummary
impl UnwindSafe for SalesSummary
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