Cached class doubler. Prevents mirroring/creation of the same structure twice.
- Author
 - Konstantin Kudryashov ever..nosp@m.zet@.nosp@m.gmail.nosp@m..com 
 
 
◆ __construct()
Initializes doubler.
- Parameters
 - 
  
  
 
 
 
◆ createDoubleClass()
  
  
      
        
          | Prophecy\Doubler\Doubler::createDoubleClass  | 
          ( | 
          ReflectionClass  | 
          $class = null,  | 
         
        
           | 
           | 
          array  | 
          $interfaces  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Creates double class and returns its FQN.
- Parameters
 - 
  
    | ReflectionClass | $class |  | 
    | ReflectionClass[] | $interfaces |  | 
  
   
- Returns
 - string 
 
Reimplemented in Prophecy\Doubler\CachedDoubler.
 
 
◆ double()
      
        
          | Prophecy\Doubler\Doubler::double  | 
          ( | 
          ReflectionClass  | 
          $class = null,  | 
        
        
           | 
           | 
          array  | 
          $interfaces,  | 
        
        
           | 
           | 
          array  | 
          $args = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Creates double from specific class or/and list of interfaces.
- Parameters
 - 
  
    | ReflectionClass | $class |  | 
    | ReflectionClass[] | $interfaces | Array of ReflectionClass instances  | 
    | array | $args | Constructor arguments | 
  
   
- Returns
 - DoubleInterface
 
- Exceptions
 - 
  
  
 
 
 
◆ getClassPatches()
      
        
          | Prophecy\Doubler\Doubler::getClassPatches  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns list of registered class patches.
- Returns
 - ClassPatchInterface[] 
 
 
 
◆ registerClassPatch()
Registers new class patch.
- Parameters
 - 
  
    | ClassPatchInterface | $patch |  | 
  
   
 
 
The documentation for this class was generated from the following file:
- vendor/phpspec/prophecy/src/Prophecy/Doubler/Doubler.php