The base class for all value objects and structs.
Constants¶
                
INF        ¶
    
        
        Range.php
                :
        19
                
    
        | 
                     | 
                
                    
                     | 
            
Methods¶
                
__construct()
            ¶
    
        
        Range.php
                :
        41
                
    
        Construct object optionally with a set of properties.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $from | mixed | - | - | 
| $to | mixed | - | - | 
| $label | string|null | null | - | 
                
__toString()
            ¶
    
        
        Range.php
                :
        76
                
    
        | 
                     | 
                
                    
                     | 
            
Return values
string
                
equalsTo()
            ¶
    
        
        Range.php
                :
        99
                
    
        Check if the range is equal to another range.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $value | Range | - | - | 
Return values
bool
                
getFrom()
            ¶
    
        
        Range.php
                :
        53
                
    
        | 
                     | 
                
                    
                     | 
            
                
getLabel()
            ¶
    
        
        Range.php
                :
        66
                
    
        | 
                     | 
                
                    
                     | 
            
Return values
string|null
                
getTo()
            ¶
    
        
        Range.php
                :
        61
                
    
        | 
                     | 
                
                    
                     | 
            
                
ofDateTime()
            ¶
    
        
        Range.php
                :
        151
                
    
        Creates a range of dates.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $from | DateTimeInterface|null | - | - | 
| $to | DateTimeInterface|null | - | - | 
Return values
self
                
ofFloat()
            ¶
    
        
        Range.php
                :
        141
                
    
        Creates a range of floats.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $from | float|null | - | - | 
| $to | float|null | - | - | 
Return values
self
                
ofInt()
            ¶
    
        
        Range.php
                :
        131
                
    
        Creates a range of integers.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $from | int|null | - | - | 
| $to | int|null | - | - | 
Return values
self
                
setLabel()
            ¶
    
        
        Range.php
                :
        71
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $label | string|null | - | - | 
                
getProperties()
            ¶
    
        
        ValueObject.php
                :
        53
                
    
        Returns list of available properties' names.
| 
                     | 
                
                    
                     | 
            
Override to add dynamic properties.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $dynamicProperties | array<int, string> | [] | 
                                                         Additional dynamic properties exposed on the object  | 
                
Return values
array<int, string>
Attributes
- #[Ignore]