Zephir\ClassDefinition::getConstantFromInterfaces PHP Method

getConstantFromInterfaces() protected method

protected getConstantFromInterfaces ( $name ) : boolean | zephir\ClassConstant
$name
return 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;
    }