code: protected function getProtected($instance, $property)
      {
          $closure = function ($property) {
              return $this->$property;
          };
          $callback = $closure->bindTo($instance, $instance);
  
          return $callback($property);
      }
docs: Gets inaccessible property.
  
  @param $instance
  @param $property
  @return \Closure