You are here

private function ClassMirror::reflectInterfaceToNode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php \Prophecy\Doubler\Generator\ClassMirror::reflectInterfaceToNode()
1 call to ClassMirror::reflectInterfaceToNode()
ClassMirror::reflect in vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php
Reflects provided arguments into class node.

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php, line 119

Class

ClassMirror
Class mirror. Core doubler class. Mirrors specific class and/or interfaces into class node tree.

Namespace

Prophecy\Doubler\Generator

Code

private function reflectInterfaceToNode(ReflectionClass $interface, Node\ClassNode $node) {
  $node
    ->addInterface($interface
    ->getName());
  foreach ($interface
    ->getMethods() as $method) {
    $this
      ->reflectMethodToNode($method, $node);
  }
}