CartItem
class CartItem extends ReactiveObject
Traits
Properties
| protected array | $hooks | from Hooks | |
| protected Event[] | $eventHandlers | from Events | |
| protected | $timestamps | ||
| protected array | $attributes | from Accessors | |
| array | $modified | from Accessors | |
| ReactiveObject|ItemCollection|null | $parent | from ReactiveObject | |
| protected | $defaults | ||
| protected | $readOnlyAttributes | ||
| int | $entry_id | ||
| string | $entry_name | ||
| int | $no_of_entries | ||
| string | $type | ||
| int | $variant_id | ||
| string | $variant_value | ||
| string | $variant_name | ||
| float | $variant_cost | ||
| int | $variant_weight | ||
| float | $tax_percent | ||
| int | $entries_weight | ||
| string | $ip | ||
| string | $user_agent | ||
| int | $changed_in_cart | ||
| Carbon | $reservation_start | ||
| Carbon | $reservation_end | ||
| string | $entries_comments | ||
| Properties | $properties | 
Methods
                    on(string $eventName, callable $handler = null)
        
                                            
                Attaches an event handler for a given event
from 
Events
            
                    void
                
                
                    trigger(string $eventName, mixed $payload = null)
        
                                            
                Invokes the event handlers for the given event
from 
Events
            
                    __construct(object|array $attributes = [], object|null $parent = null)
        
                                            
                No description
from 
ReactiveObject
            
                    setParent(ReactiveObject|ItemCollection|null $parent)
        
                                            
                No description
from 
ReactiveObject
            
                    static ReactiveObject
                
                
                    factory(object|array $attributes = [], object|null $parent = null)
        
                                            
                No description
from 
ReactiveObject
            
                    array
                
                
                    jsonSerialize()
        
                                            
                
            No description
                    getEntryIdAttribute($value)
        
                                            
                
            No description
                    getNoOfEntriesAttribute($value)
        
                                            
                
            No description
                    getVariantIdAttribute($value)
        
                                            
                
            No description
                    getVariantCostAttribute($value)
        
                                            
                
            No description
                    getTaxPercentAttribute($value)
        
                                            
                
            No description
                    getTaxCostAttribute($value)
        
                                            
                
            No description
                    getEntriesCostAttribute($value)
        
                                            
                
            No description
                    getEntriesTotalAttribute($value)
        
                                            
                
            No description
                    getChangedInCartAttribute($value)
        
                                            
                
            No description
                    getReservationStartAttribute($value)
        
                                            
                
            No description
                    getReservationEndAttribute($value)
        
                                            
                
            No description
                    getOriginalVariantCostAttribute($value)
        
                                            
                
            No description
                    getOriginalEntriesTotalAttribute($value)
        
                                            
                
            No description
                    getOriginalEntriesCostAttribute($value)
        
                                            
                
            No description
                    getOriginalTaxCostAttribute($value)
        
                                            
                
            No description
                    Properties
                
                
                    getPropertiesAttribute(mixed $properties)
        
                                            
                
            No description
                    DiscountData
                
                
                    getDiscountDataAttribute(mixed $data)
        
                                            
                
            No description
Details
        in 
Hooks at line 30
                            void
    performHook(string $name)
        
    
    
        in 
Hooks at line 40
                            void
    performHooks()
        
    
    
        in 
Events at line 17
                            Events
    on(string $eventName, callable $handler = null)
        
    
    Attaches an event handler for a given event
        in 
Events at line 43
                            void
    emit(string $event, mixed $payload = null)
        
    
    Emits an event to parent
        in 
Events at line 57
                            void
    trigger(string $eventName, mixed $payload = null)
        
    
    Invokes the event handlers for the given event
        in 
Timestamps at line 18
                            
    serializeTimestamp($value)
        
    
    
        in 
Accessors at line 30
                            array
    toArray()
        
    
    Get the raw attributes