for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace gossi\codegen\parser\visitor;
use gossi\codegen\parser\visitor\parts\StructParserPart;
use PhpParser\Node\Stmt\Interface_;
class InterfaceParserVisitor extends StructParserVisitor {
use StructParserPart;
public function visitInterface(Interface_ $node) {
foreach ($node->extends as $name) {
$this->struct->addInterface(implode('\\', $name->parts));
}