public static function checkIsVisible($doc)
    {
        $visible = false;
        if (false !== preg_match('/@visible\s+([^\s]+)/', $doc, $matches)) {
            $visible =  count($matches) < 2 || 'false' !== strtolower($matches[1]);
        }
        return $visible;
    }
public static function checkIsVisible($doc)
    {
        $visible = false;
        if (false !== preg_match('/@visible\s+([^\s]+)/', $doc, $matches)) {
            $visible =  count($matches) < 2 || 'false' !== strtolower($matches[1]);
        }
        return $visible;
    }
public static function checkIsVisible ( $ doc ) { $ visible = false ; if ( false !== preg_match ( '/@visible\s+([^\s]+)/' , $ doc , $ matches ) ) { $ visible = count ( $ matches ) < 2 || 'false' !== strtolower ( $ matches [ 1 ] ) ; } return $ visible ; }
Method extract if a class or variable is visible
@param $doc
@return null|string
Method extract if a class or variable is visible