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

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

Is the property private?
public isPrivate ( ) : boolean
Результат boolean
    public function isPrivate()
    {
        return $this->node->isPrivate();
    }

Usage Example

Пример #1
0
 function it_can_be_private(ReflectionProperty $reflectionProperty)
 {
     $reflectionProperty->isPrivate()->willReturn(false);
     $this->isPrivate()->shouldBe(false);
     $reflectionProperty->isPrivate()->willReturn(true);
     $this->isPrivate()->shouldBe(true);
 }
All Usage Examples Of BetterReflection\Reflection\ReflectionProperty::isPrivate