Lazy double. Gives simple interface to describe double before creating it.
- Author
 - Konstantin Kudryashov ever..nosp@m.zet@.nosp@m.gmail.nosp@m..com 
 
 
◆ __construct()
      
        
          | Prophecy\Doubler\LazyDouble::__construct  | 
          ( | 
          Doubler  | 
          $doubler | ) | 
           | 
        
      
 
Initializes lazy double.
- Parameters
 - 
  
  
 
 
 
◆ addInterface()
      
        
          | Prophecy\Doubler\LazyDouble::addInterface  | 
          ( | 
            | 
          $interface | ) | 
           | 
        
      
 
Tells doubler to implement specific interface with double.
- Parameters
 - 
  
    | string | ReflectionClass | $interface |  | 
  
   
- Exceptions
 - 
  
  
 
 
 
◆ getInstance()
      
        
          | Prophecy\Doubler\LazyDouble::getInstance  | 
          ( | 
           | ) | 
           | 
        
      
 
Creates double instance or returns already created one.
- Returns
 - DoubleInterface 
 
 
 
◆ setArguments()
      
        
          | Prophecy\Doubler\LazyDouble::setArguments  | 
          ( | 
          array  | 
          $arguments = null | ) | 
           | 
        
      
 
Sets constructor arguments.
- Parameters
 - 
  
  
 
 
 
◆ setParentClass()
      
        
          | Prophecy\Doubler\LazyDouble::setParentClass  | 
          ( | 
            | 
          $class | ) | 
           | 
        
      
 
Tells doubler to use specific class as parent one for double.
- Parameters
 - 
  
    | string | ReflectionClass | $class |  | 
  
   
- Exceptions
 - 
  
  
 
 
 
The documentation for this class was generated from the following file: