public function testSetGetModifiers() { $property = new PropertyReflection('foo', 0); $property->setModifiers(0); $this->assertTrue($property->isPublic()); $property->setModifiers(PropertyReflection::MODIFIER_PUBLIC); $this->assertTrue($property->isPublic()); $property->setModifiers(PropertyReflection::MODIFIER_PROTECTED); $this->assertTrue($property->isProtected()); $property->setModifiers(PropertyReflection::MODIFIER_PRIVATE); $this->assertTrue($property->isPrivate()); $property->setModifiers(PropertyReflection::MODIFIER_STATIC); $this->assertTrue($property->isPublic()); $this->assertTrue($property->isStatic()); }
public function acceptProperty(PropertyReflection $property) { if ($property->isPrivate()) { return false; } if ($property->isProtected() && !$this->hasApiTag($property)) { return false; } if ($this->hasApiTag($property)) { return true; } if ($this->hasApiTag($property->getClass())) { return true; } return false; }
public function acceptProperty(PropertyReflection $property) { return !$property->isPrivate(); }