CropVariantCollection
    
    
    
    
        
        
    Table of Contents
    
    Properties
    
            - 
    $cropVariants
    
                         : array<string|int, CropVariant>            
    Methods
    
            - 
    __construct()
    
                                 : mixed    
- 
    __toString()
    
                                 : mixed    
- 
    applyRatioRestrictionToSelectedCropArea()
    
                                 : CropVariantCollection    
- 
    asArray()
    
                                 : array<string|int, mixed>    
- 
    create()
    
                                 : CropVariantCollection    
- 
    getCropArea()
    
                                 : Area    
- 
    getFocusArea()
    
                                 : Area    
- 
    addCropVariant()
    
                                 : mixed    
- 
    createEmpty()
    
                                 : CropVariantCollection    
- 
    setCropVariants()
    
                                 : mixed    
        $cropVariants
        
        
                                            
    
    
    
    
    
        protected
            array<string|int, CropVariant>
    $cropVariants
    
    
    
    
    
    
            
            
        
                    
    
        __construct()
        
    
    
    
    
    public
                    __construct(array<string|int, CropVariant> $cropVariants) : mixed
    
        
    
    
        Parameters
    
                    - 
                $cropVariants
                : array<string|int, CropVariant>
                            
- 
                
            
                                    - 
                    throws
                
- 
                                                                InvalidConfigurationException
                                                            
                                             
                                    
        __toString()
        
    
    
    
    
    public
                    __toString() : mixed
    
        
    
    
    
    
    
    
                    
    
        applyRatioRestrictionToSelectedCropArea()
        
    
    
    
    
    public
                    applyRatioRestrictionToSelectedCropArea(FileInterface $file) : CropVariantCollection
    
        
    
    
        Parameters
    
                    - 
                $file
                : FileInterface
                            
- 
                
            
        asArray()
        
    
    
    
    
    public
                    asArray() : array<string|int, mixed>
    
        
    
    
    
    
                        
            
    
            
        Return values
        array<string|int, mixed>
            
                    
    
        create()
        
    
    
    
    
    public
            static        create(string $jsonString[, array<string|int, mixed> $tcaConfig = [] ]) : CropVariantCollection
    
        
    
    
        Parameters
    
                    - 
                $jsonString
                : string
                            
- 
                
            
- 
                $tcaConfig
                : array<string|int, mixed>
                 = []            
- 
                
            
        getCropArea()
        
    
    
    
    
    public
                    getCropArea([string $id = 'default' ]) : Area
    
        
    
    
        Parameters
    
                    - 
                $id
                : string
                 = 'default'            
- 
                
            
        getFocusArea()
        
    
    
    
    
    public
                    getFocusArea([string $id = 'default' ]) : Area
    
        
    
    
        Parameters
    
                    - 
                $id
                : string
                 = 'default'            
- 
                
            
        addCropVariant()
        
    
    
    
    
    protected
                    addCropVariant(CropVariant $cropVariant) : mixed
    
        
    
    
        Parameters
    
                    - 
                $cropVariant
                : CropVariant
                            
- 
                
            
                                    - 
                    throws
                
- 
                                                                InvalidConfigurationException
                                                            
                                             
                                    
        createEmpty()
        
    
    
    
    
    protected
            static        createEmpty() : CropVariantCollection
    
        
    
    
    
    
    
            
                    
    
        setCropVariants()
        
    
    
    
    
    protected
                    setCropVariants(CropVariant ...$cropVariants) : mixed
    
        
    
    
        Parameters
    
                    - 
                $cropVariants
                : CropVariant
                            
- 
                
            
                                    - 
                    throws
                
- 
                                                                InvalidConfigurationException