Zephir\ClassDefinition::getConstantFromInterfaces PHP Метод

getConstantFromInterfaces() защищенный Метод

protected getConstantFromInterfaces ( $name ) : boolean | zephir\ClassConstant
$name
Результат boolean | zephir\ClassConstant
    protected function getConstantFromInterfaces($name)
    {
        if ($interfaces = $this->getImplementedInterfaceDefinitions()) {
            foreach ($interfaces as $interface) {
                if ($interface->hasConstant($name)) {
                    return $interface->getConstant($name);
                }
            }
        }
        return false;
    }