protected function ensureInterfacesExist($interfaces, $stmt)
    {
        foreach ($interfaces as $interface) {
            /** @var string $name */
            $name = $this->getFullyQualifiedName($interface);
            if (!$this->interfaceExists($name)) {
                throw $this->createError(\sprintf('Interface \'%s\' not found', $name), $stmt);
            }
        }
    }
protected function ensureInterfacesExist($interfaces, $stmt)
    {
        foreach ($interfaces as $interface) {
            /** @var string $name */
            $name = $this->getFullyQualifiedName($interface);
            if (!$this->interfaceExists($name)) {
                throw $this->createError(\sprintf('Interface \'%s\' not found', $name), $stmt);
            }
        }
    }
protected function ensureInterfacesExist ( $ interfaces , $ stmt ) { foreach ( $ interfaces as $ interface ) { /** @var string $name */ $ name = $ this -> getFullyQualifiedName ( $ interface ) ; if ( ! $ this -> interfaceExists ( $ name ) ) { throw $ this -> createError ( \ sprintf ( 'Interface \'%s\' not found' , $ name ) , $ stmt ) ; } } }
Ensure that a referenced interface exists.

@throws FatalErrorException

@param Interface_[] $interfaces
@param Stmt         $stmt
Ensure that a referenced interface exists .