Gradient
class Gradient extends JsonConfig (View source)
Gradient ConfigObject
An object that specifies a color gradient
Constants
| TYPE | 
                     Type of JsonConfig object 
  | 
            
Methods
Builds the gradient object with specified options
Shortcut method to set the value of an option and return $this.
Parses the config array by passing the values through each method to check validity against if the option exists.
Details
        at line 53
                            
    
    __construct(
    array $config = array())
    
    Builds the gradient object with specified options
        in 
    JsonConfig at line 64
                            
    mixed
    __get(
    string $option)
    
    Get the value of a set option via magic method.
        in 
    JsonConfig at line 75
                            
    Options
    getOptions()
    
    Gets the Options object for the JsonConfig
        in 
    JsonConfig at line 90
                            
    JsonConfig
    setOption(
    string $option, 
    mixed $value)
    
    Shortcut method to set the value of an option and return $this.
In order to maintain backwards compatibility, ConfigObjects will be unwrapped.
        in 
    JsonConfig at line 106
                            
    
    setOptions(
    array $config)
    
    Parses the config array by passing the values through each method to check validity against if the option exists.
        in 
    JsonConfig at line 275
                            
    array
    jsonSerialize()
    
    Custom serialization of the JsonConfig object.
        at line 67
                            
    Gradient
    color1(
    string $color1)
    
    If present, specifies the start color for the gradient.
        at line 79
                            
    Gradient
    color2(
    string $color2)
    
    If present, specifies the finish color for the gradient.
        at line 91
                            
    Gradient
    x1(
    string $x1)
    
    Sets where on the boundary to start in X.
        at line 103
                            
    Gradient
    y1(
    string $y1)
    
    Sets where on the boundary to start in Y.
        at line 115
                            
    Gradient
    x2(
    string $x2)
    
    Sets where on the boundary to end in X, relative to x1.
        at line 127
                            
    Gradient
    y2(
    string $y2)
    
    Sets where on the boundary to end in Y, relative to y1.