Zephir\ClassDefinition::hasConstantFromInterfaces PHP Méthode

hasConstantFromInterfaces() protected méthode

protected hasConstantFromInterfaces ( $name ) : boolean
$name
Résultat boolean
    protected function hasConstantFromInterfaces($name)
    {
        if ($interfaces = $this->getImplementedInterfaceDefinitions()) {
            foreach ($interfaces as $interface) {
                if ($interface->hasConstant($name)) {
                    return true;
                }
            }
        }
        return false;
    }