public function ClassNode::addInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php \Prophecy\Doubler\Generator\Node\ClassNode::addInterface()
Parameters
string $interface:
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ Generator/ Node/ ClassNode.php, line 56
Class
- ClassNode
- Class node.
Namespace
Prophecy\Doubler\Generator\NodeCode
public function addInterface($interface) {
if ($this
->hasInterface($interface)) {
return;
}
array_unshift($this->interfaces, $interface);
}