lib/Utils/Hydrator.php
public function extract($object): array
    {
        if (!is_object($object)) {
            throw new RuntimeException(
                sprintf('%s expects the provided $object to be a PHP object', __METHOD__)
            );
        }

        return (function (): array {
            return get_object_vars($this);
        })->call($object);
    }
public function extract($object): array
    {
        if (!is_object($object)) {
            throw new RuntimeException(
                sprintf('%s expects the provided $object to be a PHP object', __METHOD__)
            );
        }

        return (function (): array {
            return get_object_vars($this);
        })->call($object);
    }
public function extract ( $ object ) : array { if ( ! is_object ( $ object ) ) { throw new RuntimeException ( sprintf ( '%s expects the provided $object to be a PHP object' , __METHOD__ ) ) ; } return ( function ( ) : array { return get_object_vars ( $ this ) ; } ) -> call ( $ object ) ; }
Extract values from an object.

@param object $object

@return array<string, mixed>
Extract values from an object .