Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ClassMirror.php

function ClassMirror::reflectInterfaceToNode

Parameters

ReflectionClass<object> $interface:

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 136

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) : void {
    $node->addInterface($interface->getName());
    foreach ($interface->getMethods() as $method) {
        $this->reflectMethodToNode($method, $node);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal