You are here

public function ClassNode::hasInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php \Prophecy\Doubler\Generator\Node\ClassNode::hasInterface()

Parameters

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 70

Class

ClassNode
Class node.

Namespace

Prophecy\Doubler\Generator\Node

Code

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