public function to_legacy_objects(array $authors) : array {
        return array_map(function(author_entity $author) {
            return (object) [
                'id' => $author->get_id(),
                'picture' => $author->get_picture_item_id(),
                'firstname' => $author->get_first_name(),
                'lastname' => $author->get_last_name(),
                'fullname' => $author->get_full_name(),
                'email' => $author->get_email(),
                'middlename' => $author->get_middle_name(),
                'firstnamephonetic' => $author->get_first_name_phonetic(),
                'lastnamephonetic' => $author->get_last_name_phonetic(),
                'alternatename' => $author->get_alternate_name(),
                'imagealt' => $author->get_image_alt()
            ];
        }, $authors);
    }
public function to_legacy_objects(array $authors) : array {
        return array_map(function(author_entity $author) {
            return (object) [
                'id' => $author->get_id(),
                'picture' => $author->get_picture_item_id(),
                'firstname' => $author->get_first_name(),
                'lastname' => $author->get_last_name(),
                'fullname' => $author->get_full_name(),
                'email' => $author->get_email(),
                'middlename' => $author->get_middle_name(),
                'firstnamephonetic' => $author->get_first_name_phonetic(),
                'lastnamephonetic' => $author->get_last_name_phonetic(),
                'alternatename' => $author->get_alternate_name(),
                'imagealt' => $author->get_image_alt()
            ];
        }, $authors);
    }
public function to_legacy_objects ( array $ authors ) : array { return array_map ( function ( author_entity $ author ) { return ( object ) [ 'id' => $ author -> get_id ( ) , 'picture' => $ author -> get_picture_item_id ( ) , 'firstname' => $ author -> get_first_name ( ) , 'lastname' => $ author -> get_last_name ( ) , 'fullname' => $ author -> get_full_name ( ) , 'email' => $ author -> get_email ( ) , 'middlename' => $ author -> get_middle_name ( ) , 'firstnamephonetic' => $ author -> get_first_name_phonetic ( ) , 'lastnamephonetic' => $ author -> get_last_name_phonetic ( ) , 'alternatename' => $ author -> get_alternate_name ( ) , 'imagealt' => $ author -> get_image_alt ( ) ] ; } , $ authors ) ; }
Convert a list of author entities into stdClasses.

@param author_entity[] $authors The authors to convert.
@return stdClass[]
Convert a list of author entities into stdClasses .