Carbon
class Carbon extends Carbon (View source)
Traits
Methods
                    $this|TWhenReturnType
                
                
                    when($value = null, callable|null $callback = null, callable|null $default = null)
        
                                            
                Apply the callback if the given "value" is (or resolves to) truthy.
from 
Conditionable
            
                    $this|TUnlessReturnType
                
                
                    unless($value = null, callable|null $callback = null, callable|null $default = null)
        
                                            
                Apply the callback if the given "value" is (or resolves to) falsy.
from 
Conditionable
            
                    static 
                
                
                    setTestNow($testNow = null)
        
                                            
                
            {@inheritdoc}
Details
        
                            $this|TWhenReturnType
    when($value = null, callable|null $callback = null, callable|null $default = null)
        
    
    Apply the callback if the given "value" is (or resolves to) truthy.
        
                            $this|TUnlessReturnType
    unless($value = null, callable|null $callback = null, callable|null $default = null)
        
    
    Apply the callback if the given "value" is (or resolves to) falsy.
        
                static            
    setTestNow($testNow = null)
        
    
    {@inheritdoc}