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

Breadcrumb

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

function ClassNode::hasInterface

Parameters

class-string $interface:

Return value

bool

1 call to ClassNode::hasInterface()
ClassNode::addInterface in vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php, line 100

Class

ClassNode
Class node.

Namespace

Prophecy\Doubler\Generator\Node

Code

public function hasInterface($interface) {
    return in_array($interface, $this->interfaces);
}

API Navigation

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