BetterReflection\Reflection\ReflectionProperty::getModifiers PHP Метод

getModifiers() публичный Метод

Get the core-reflection-compatible modifier values.
public getModifiers ( ) : integer
Результат integer
    public function getModifiers()
    {
        $val = 0;
        $val += $this->isStatic() ? \ReflectionProperty::IS_STATIC : 0;
        $val += $this->isPublic() ? \ReflectionProperty::IS_PUBLIC : 0;
        $val += $this->isProtected() ? \ReflectionProperty::IS_PROTECTED : 0;
        $val += $this->isPrivate() ? \ReflectionProperty::IS_PRIVATE : 0;
        return $val;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getModifiers()
 {
     return $this->betterReflectionProperty->getModifiers();
 }