public function get($key, $subject)
    {
        $property = $this->getPublicProperty($key, new \ReflectionClass($subject));

        return $property->getValue($subject);
    }
public function get($key, $subject)
    {
        $property = $this->getPublicProperty($key, new \ReflectionClass($subject));

        return $property->getValue($subject);
    }
@param string $key
@param mixed  $subject

@return mixed