Percent
        Percent.php
                :
        16
                 
    
                                Final
                
        
                    
                Implements
                                    Stringable                            
        
                VO representing percent value e.g. 25%.
Properties¶
                 $value
            ¶
        $value
            ¶
    
        
        Percent.php
                :
        20
                 
    
        |  |  | 
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        
        Percent.php
                :
        22
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $value | float | - | - | 
                 __toString()
            ¶
__toString()
            ¶
    
        
        Percent.php
                :
        42
                 
    
        |  |  | 
Return values
string
                 equals()
            ¶
equals()
            ¶
    
        
        Percent.php
                :
        37
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $percent | Percent | - | - | 
| $epsilon | float | Percent::DEFAULT_EPSILON | - | 
Return values
bool
                 fraction()
            ¶
fraction()
            ¶
    
        
        Percent.php
                :
        47
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $a | float | - | - | 
| $b | float | - | - | 
Return values
                 getValue()
            ¶
getValue()
            ¶
    
        
        Percent.php
                :
        27
                 
    
        |  |  | 
Return values
float
                 getValueAsFloat()
            ¶
getValueAsFloat()
            ¶
    
        
        Percent.php
                :
        32
                 
    
        |  |  | 
Return values
float
                 hundred()
            ¶
hundred()
            ¶
    
        
        Percent.php
                :
        68
                 
    
        |  |  | 
Return values
self
                 zero()
            ¶
zero()
            ¶
    
        
        Percent.php
                :
        58
                 
    
        |  |  | 
Return values
self