*/ public function collect( $spec ): array; /** * Restore previously-captured state. Inverse of collect(). * * @param array $captured Payload returned by collect() earlier. */ public function restore( array $captured ): void; }