public function get(array $names)
    {
        $records = $this->connection()->pipeline(function ($pipe) use ($names) {
            foreach ($names as $name) {
                $pipe->hmget('supervisor:'.$name, ['name', 'master', 'pid', 'status', 'processes', 'options']);
            }
        });

        return collect($records)->filter()->map(function ($record) {
            $record = array_values($record);

            return ! $record[0] ? null : (object) [
                'name' => $record[0],
                'master' => $record[1],
                'pid' => $record[2],
                'status' => $record[3],
                'processes' => json_decode($record[4], true),
                'options' => json_decode($record[5], true),
            ];
        })->filter()->all();
    }
public function get(array $names)
    {
        $records = $this->connection()->pipeline(function ($pipe) use ($names) {
            foreach ($names as $name) {
                $pipe->hmget('supervisor:'.$name, ['name', 'master', 'pid', 'status', 'processes', 'options']);
            }
        });

        return collect($records)->filter()->map(function ($record) {
            $record = array_values($record);

            return ! $record[0] ? null : (object) [
                'name' => $record[0],
                'master' => $record[1],
                'pid' => $record[2],
                'status' => $record[3],
                'processes' => json_decode($record[4], true),
                'options' => json_decode($record[5], true),
            ];
        })->filter()->all();
    }
public function get ( array $ names ) { $ records = $ this -> connection ( ) -> pipeline ( function ( $ pipe ) use ( $ names ) { foreach ( $ names as $ name ) { $ pipe -> hmget ( 'supervisor:' . $ name , [ 'name' , 'master' , 'pid' , 'status' , 'processes' , 'options' ] ) ; } } ) ; return collect ( $ records ) -> filter ( ) -> map ( function ( $ record ) { $ record = array_values ( $ record ) ; return ! $ record [ 0 ] ? null : ( object ) [ 'name' => $ record [ 0 ] , 'master' => $ record [ 1 ] , 'pid' => $ record [ 2 ] , 'status' => $ record [ 3 ] , 'processes' => json_decode ( $ record [ 4 ] , true ) , 'options' => json_decode ( $ record [ 5 ] , true ) , ] ; } ) -> filter ( ) -> all ( ) ; }
Get information on the given supervisors.

@param  array  $names
@return array
Get information on the given supervisors .