pub struct Promotion { /* private fields */ }Implementations§
Source§impl Promotion
impl Promotion
pub fn get_id(&self) -> String
pub fn get_code(&self) -> String
pub fn get_name(&self) -> String
pub fn get_description(&self) -> Option<String>
pub fn get_discount_type(&self) -> String
pub fn get_discount_value(&self) -> f64
pub fn get_min_purchase(&self) -> Option<f64>
pub fn get_max_uses(&self) -> Option<i32>
pub fn get_uses_count(&self) -> i32
pub fn get_starts_at(&self) -> Option<String>
pub fn get_ends_at(&self) -> Option<String>
pub fn get_status(&self) -> String
pub fn get_created_at(&self) -> String
pub fn __to_string(&self) -> String
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Promotion
impl<'a> FromZendObject<'a> for &'a Promotion
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 Promotion
impl<'a> FromZendObjectMut<'a> for &'a mut Promotion
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> FromZvalMut<'a> for &'a mut Promotion
impl<'a> FromZvalMut<'a> for &'a mut Promotion
Source§impl IntoZendObject for Promotion
impl IntoZendObject for Promotion
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 Promotion
impl IntoZval for Promotion
Source§impl RegisteredClass for Promotion
impl RegisteredClass for Promotion
Source§const CLASS_NAME: &'static str = "StateSet\\Promotion"
const CLASS_NAME: &'static str = "StateSet\\Promotion"
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 Promotion
impl RefUnwindSafe for Promotion
impl Send for Promotion
impl Sync for Promotion
impl Unpin for Promotion
impl UnsafeUnpin for Promotion
impl UnwindSafe for Promotion
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