code: public function get($key, $subject)
      {
          $property = $this->getPublicProperty($key, new \ReflectionClass($subject));
  
          return $property->getValue($subject);
      }
docs: @param string $key
  @param mixed  $subject
  
  @return mixed