/** * Returns true if the property is visible to the object * * A property is visible to a calling class if the property is public (and * visible to any calling class) or the calling class is this class (and the * property protected or private). * * @param Jstewmc\Refraction\RefractionProperty $property the property * @param object $object the calling class * @return bool * @since 0.1.0 */ protected final function isPropertyVisible($property, $object) { return $property->isPublic() || $object === $this; }