Utilities/SleepUtility.php
public static function sleep($class, array $excludedProperties = [])
    {
        $propertyNames = [];
        $refl = new \ReflectionClass($class);
        foreach ($refl->getProperties() as $property) {
            if (\in_array($property->getName(), $excludedProperties, true)) {
                continue;
            }
            $propertyNames[] = $property->getName();
        }

        return $propertyNames;
    }
public static function sleep($class, array $excludedProperties = [])
    {
        $propertyNames = [];
        $refl = new \ReflectionClass($class);
        foreach ($refl->getProperties() as $property) {
            if (\in_array($property->getName(), $excludedProperties, true)) {
                continue;
            }
            $propertyNames[] = $property->getName();
        }

        return $propertyNames;
    }
public static function sleep ( $ class , array $ excludedProperties = [ ] ) { $ propertyNames = [ ] ; $ refl = new \ ReflectionClass ( $ class ) ; foreach ( $ refl -> getProperties ( ) as $ property ) { if ( \ in_array ( $ property -> getName ( ) , $ excludedProperties , true ) ) { continue ; } $ propertyNames [ ] = $ property -> getName ( ) ; } return $ propertyNames ; }
@param string $class
@param array  $excludedProperties

@return array
@param string $class @param array $excludedProperties