src/ClassHelper.php
public static function findPropertiesNames(
        string $classFqcn,
        array $excludedNames = [],
        array $excludedVisibility = []
    ) {
        $defaultVisibility = ['public' => true, 'protected' => true, 'private' => true, 'static' => true];
        $excludedVisibility = array_merge(
            $defaultVisibility,
            self::setGivenExcludedVisivilitiesToKeysWithValueFalse($excludedVisibility)
        );

        $reflectionClass = self::getReflectionClass($classFqcn);
        $reflectionPropertiesArray = $reflectionClass->getProperties();

        return self::filterProperties($excludedNames, $excludedVisibility, $reflectionPropertiesArray);
    }
public static function findPropertiesNames(
        string $classFqcn,
        array $excludedNames = [],
        array $excludedVisibility = []
    ) {
        $defaultVisibility = ['public' => true, 'protected' => true, 'private' => true, 'static' => true];
        $excludedVisibility = array_merge(
            $defaultVisibility,
            self::setGivenExcludedVisivilitiesToKeysWithValueFalse($excludedVisibility)
        );

        $reflectionClass = self::getReflectionClass($classFqcn);
        $reflectionPropertiesArray = $reflectionClass->getProperties();

        return self::filterProperties($excludedNames, $excludedVisibility, $reflectionPropertiesArray);
    }
public static function findPropertiesNames ( string $ classFqcn , array $ excludedNames = [ ] , array $ excludedVisibility = [ ] ) { $ defaultVisibility = [ 'public' => true , 'protected' => true , 'private' => true , 'static' => true ] ; $ excludedVisibility = array_merge ( $ defaultVisibility , self :: setGivenExcludedVisivilitiesToKeysWithValueFalse ( $ excludedVisibility ) ) ; $ reflectionClass = self :: getReflectionClass ( $ classFqcn ) ; $ reflectionPropertiesArray = $ reflectionClass -> getProperties ( ) ; return self :: filterProperties ( $ excludedNames , $ excludedVisibility , $ reflectionPropertiesArray ) ; }
Returns an array with all properties names of the mixed

@param string   $classFqcn
@param string[] $excludedNames
@param string[] $excludedVisibility = ['public', 'protected', 'private', 'static']

@return string[]
Returns an array with all properties names of the mixed