private function getNonPublicProperty($key, \ReflectionClass $reflect)
    {
        if ($reflect->hasProperty($key)) {

            $property = $reflect->getProperty($key);

            if (! $property->isPublic()) {
                $property->setAccessible(true);

                return $property;
            }
        }

        return null;
    }
private function getNonPublicProperty($key, \ReflectionClass $reflect)
    {
        if ($reflect->hasProperty($key)) {

            $property = $reflect->getProperty($key);

            if (! $property->isPublic()) {
                $property->setAccessible(true);

                return $property;
            }
        }

        return null;
    }
@param string           $key
@param \ReflectionClass $reflect

@return null|\ReflectionProperty