src/CodeGeneration/Generator/RelationsGenerator.php
protected function useRelationInterfaceInEntityInterface(string $classPath, string $interfacePath): void
    {
        $entityFqn           = PhpClass::fromFile($classPath)->getQualifiedName();
        $entityInterfaceFqn  = $this->namespaceHelper->getEntityInterfaceFromEntityFqn($entityFqn);
        $entityInterfacePath = (new \ts\Reflection\ReflectionClass($entityInterfaceFqn))->getFileName();
        $entityInterface     = PhpInterface::fromFile($entityInterfacePath);
        $relationInterface   = PhpInterface::fromFile($interfacePath);
        $entityInterface->addInterface($relationInterface);
        $this->codeHelper->generate($entityInterface, $entityInterfacePath);
    }
protected function useRelationInterfaceInEntityInterface(string $classPath, string $interfacePath): void
    {
        $entityFqn           = PhpClass::fromFile($classPath)->getQualifiedName();
        $entityInterfaceFqn  = $this->namespaceHelper->getEntityInterfaceFromEntityFqn($entityFqn);
        $entityInterfacePath = (new \ts\Reflection\ReflectionClass($entityInterfaceFqn))->getFileName();
        $entityInterface     = PhpInterface::fromFile($entityInterfacePath);
        $relationInterface   = PhpInterface::fromFile($interfacePath);
        $entityInterface->addInterface($relationInterface);
        $this->codeHelper->generate($entityInterface, $entityInterfacePath);
    }
protected function useRelationInterfaceInEntityInterface ( string $ classPath , string $ interfacePath ) : void { $ entityFqn = PhpClass :: fromFile ( $ classPath ) -> getQualifiedName ( ) ; $ entityInterfaceFqn = $ this -> namespaceHelper -> getEntityInterfaceFromEntityFqn ( $ entityFqn ) ; $ entityInterfacePath = ( new \ ts \ Reflection \ ReflectionClass ( $ entityInterfaceFqn ) ) -> getFileName ( ) ; $ entityInterface = PhpInterface :: fromFile ( $ entityInterfacePath ) ; $ relationInterface = PhpInterface :: fromFile ( $ interfacePath ) ; $ entityInterface -> addInterface ( $ relationInterface ) ; $ this -> codeHelper -> generate ( $ entityInterface , $ entityInterfacePath ) ; }
Add the specified interface to the specified entity interface

@param string $classPath
@param string $interfacePath

@throws \ReflectionException
@SuppressWarnings(PHPMD.StaticAccess)
Add the specified interface to the specified entity interface