BetterReflection\Reflection\ReflectionClass::getModifiers PHP Method

getModifiers() public method

Get the core-reflection-compatible modifier values.
public getModifiers ( ) : integer
return integer
    public function getModifiers()
    {
        $val = 0;
        $val += $this->isAbstract() ? \ReflectionClass::IS_EXPLICIT_ABSTRACT : 0;
        $val += $this->isFinal() ? \ReflectionClass::IS_FINAL : 0;
        return $val;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getModifiers()
 {
     return $this->betterReflectionClass->getModifiers();
 }
All Usage Examples Of BetterReflection\Reflection\ReflectionClass::getModifiers