This class represents a language in the repository.
Constants¶
                
ALL        ¶
    
        
        Language.php
                :
        26
                
    
        Constant for use in API's to specify that you want to load all languages.
| 
                     | 
                
                    
                     | 
            
Properties¶
                
        $enabled
            ¶
    
        
        Language.php
                :
        40
                
    
        | 
                     | 
                
                    
                     | 
            
                
        $id
            ¶
    
        
        Language.php
                :
        31
                
    
        The language id (auto generated).
| 
                     | 
                
                    
                     | 
            
                
        $languageCode
            ¶
    
        
        Language.php
                :
        33
                
    
        | 
                     | 
                
                    
                     | 
            
                
        $name
            ¶
    
        
        Language.php
                :
        38
                
    
        Human-readable name of the language.
| 
                     | 
                
                    
                     | 
            
Methods¶
                
__construct()
            ¶
    
        
        ValueObject.php
                :
        32
                
    
        Construct object optionally with a set of properties.
| 
                     | 
                
                    
                     | 
            
Readonly properties values must be set using $properties as they aren't writable anymore
after object has been created.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $properties | array<string, mixed> | [] | - | 
                
getId()
            ¶
    
        
        Language.php
                :
        42
                
    
        | 
                     | 
                
                    
                     | 
            
Return values
int
                
getLanguageCode()
            ¶
    
        
        Language.php
                :
        47
                
    
        | 
                     | 
                
                    
                     | 
            
Return values
string
                
getName()
            ¶
    
        
        Language.php
                :
        52
                
    
        | 
                     | 
                
                    
                     | 
            
Return values
string
                
isEnabled()
            ¶
    
        
        Language.php
                :
        57
                
    
        | 
                     | 
                
                    
                     | 
            
Return values
bool
                
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]