44 if ( !$hookRunner->onUserArrayFromResult( $userArray, $res ) ) {
45 return new ArrayIterator( [] );
60 $ids = array_map(
'intval', (array)$ids );
63 return new ArrayIterator( [] );
67 ->where( [
'user_id' => array_unique( $ids ) ] )
68 ->caller( __METHOD__ )
84 $names = array_map(
'strval', (array)$names );
87 return new ArrayIterator( [] );
91 ->where( [
'user_name' => array_unique( $names ) ] )
92 ->caller( __METHOD__ )
105 abstract public function key(): int;
112class_alias( UserArray::class,
'UserArray' );