ResourcePoolInterface
interface ResourcePoolInterface
ResourcePoolInterface.
Classes implementing this interface represent a pool which contains ResourceInterface objects. This can be used for local storage and to simplify dependency handling between resources.
Methods
                    bool
                
                
                
            
                    get(string $type, string $id, array $options = [])
        
                                            
                
            Returns the resource for the given key.
                    bool
                
                
                    has(string $type, string $id, array $options = [])
        
                                            
                
            Returns whether the pool contains the given resource.
                    string
                
                
                    generateKey(string $type, string $id, array $options = [])
        
                                            
                
            Generates a unique key for the given data.
Details
        at         line 32
                            bool
    save(ResourceInterface $resource)
        
    
    Saves the given resource into the pool.
        at         line 45
                            ResourceInterface
    get(string $type, string $id, array $options = [])
        
    
    Returns the resource for the given key.
        at         line 56
                            bool
    has(string $type, string $id, array $options = [])
        
    
    Returns whether the pool contains the given resource.
        at         line 67
                            string
    generateKey(string $type, string $id, array $options = [])
        
    
    Generates a unique key for the given data.