protected function getPropertyType($property)
    {
        if (!array_key_exists($property, get_class_vars('ShopgateConfig'))) {
            return 'string';
        }

        $r   = new \ReflectionProperty('ShopgateConfig', $property);
        $doc = $r->getDocComment();
        preg_match_all('#@var ([a-zA-Z-_]*(\[\])?)(.*?)\n#s', $doc, $annotations);

        $value = 'string';
        if (count($annotations) > 0 && isset($annotations[1][0])) {
            $value = $annotations[1][0];
        }

        return $value;
    }
protected function getPropertyType($property)
    {
        if (!array_key_exists($property, get_class_vars('ShopgateConfig'))) {
            return 'string';
        }

        $r   = new \ReflectionProperty('ShopgateConfig', $property);
        $doc = $r->getDocComment();
        preg_match_all('#@var ([a-zA-Z-_]*(\[\])?)(.*?)\n#s', $doc, $annotations);

        $value = 'string';
        if (count($annotations) > 0 && isset($annotations[1][0])) {
            $value = $annotations[1][0];
        }

        return $value;
    }
protected function getPropertyType ( $ property ) { if ( ! array_key_exists ( $ property , get_class_vars ( 'ShopgateConfig' ) ) ) { return 'string' ; } $ r = new \ ReflectionProperty ( 'ShopgateConfig' , $ property ) ; $ doc = $ r -> getDocComment ( ) ; preg_match_all ( '#@var ([a-zA-Z-_]*(\[\])?)(.*?)\n#s' , $ doc , $ annotations ) ; $ value = 'string' ; if ( count ( $ annotations ) > 0 && isset ( $ annotations [ 1 ] [ 0 ] ) ) { $ value = $ annotations [ 1 ] [ 0 ] ; } return $ value ; }
Fetches the property type described in phpdoc annotation

@param string $property

@return string
@throws \ReflectionException
Fetches the property type described in phpdoc annotation